Inactive [ADMN] ArmorKeep v1.2 - Assign Permissions to Armor [1060]

Discussion in 'Inactive/Unsupported Plugins' started by ClockworkXCV, Jul 19, 2011.

  1. Offline

    ClockworkXCV

    ArmorKeep - Assign Permissions to Armor:
    Version: v1.2

    ArmorKeep allows server admins to decide which permission groups should be able to use each type of armor.

    Requires Permissions 3
    and Spout (plugin only, not client mod)

    Features:
    • Allows admins to restrict usage of armor based on permission group
    • Returns the piece of armor to the player if they do not have permission to use it (configurable)
    Permission Nodes:
    Below is the list of all the permission nodes you can use for ArmorKeep.
    They are all self-explanatory.
    Show Spoiler
    Full Access to ArmorKeep:
    Code:
    - armorkeep.*
    Armor-related Nodes:
    Code:
    - armorkeep.leather.*
    - armorkeep.leather.helmet
    - armorkeep.leather.chestplate
    - armorkeep.leather.leggings
    - armorkeep.leather.boots
    - armorkeep.chainmail.*
    - armorkeep.chainmail.helmet
    - armorkeep.chainmail.chestplate
    - armorkeep.chainmail.leggings
    - armorkeep.chainmail.boots
    - armorkeep.iron.*
    - armorkeep.iron.helmet
    - armorkeep.iron.chestplate
    - armorkeep.iron.leggings
    - armorkeep.iron.boots
    - armorkeep.gold.*
    - armorkeep.gold.helmet
    - armorkeep.gold.chestplate
    - armorkeep.gold.leggings
    - armorkeep.gold.boots
    - armorkeep.diamond.*
    - armorkeep.diamond.helmet
    - armorkeep.diamond.chestplate
    - armorkeep.diamond.leggings
    - armorkeep.diamond.boots
    Command-related Nodes:
    Code:
    - armorkeep.help
    - armorkeep.version
    - armorkeep.check
    - armorkeep.set.*
    - armorkeep.set.returnarmor
    - armorkeep.set.logarmor
    - armorkeep.set.logcommands

    Configuring ArmorKeep:
    Show Spoiler
    Default Config:
    (order may vary)
    Code:
    # ArmorKeep v1.0 Configuration #
    LogWhenAUserIsDeniedArmor: false
    LogWhenAUserUsesACommand: true
    ReturnArmorToPlayer: true
    The only acceptable values for all of these options is true or false.

    Commands:
    Show Spoiler
    /armorkeep check [player] - Manually initiate a check on the specified player's inventory
    /armorkeep set [returnarmor|logarmor|logcommands] [true|false] - Edit the config in-game or from the console
    /armorkeep version - Display the version of ArmorKeep installed on the server
    /armorkeep help - Display the help page about using ArmorKeep commands
    /armorkeep ? - Same as /armorkeep help
    Note: You can use /ak [check|version|help] in place of /armorkeep [check|version|help] (not to be confused with /afk).

    Download ArmorKeep v1.2
    (use the links in the changelog for older versions)
    Source Code: Coming Soon

    Feel free to give some constructive criticism as this is my first plugin. :p

    Big thanks to @Afforess for his work on Spout and to @Grammar Troll for giving me the idea to hook into Spout.

    This plugin is a request from this thread.

    Troubleshooting
    Please read this before posting any error messages you get while using ArmorKeep.
    Show Spoiler

    The error below means that you didn't install BukkitContrib correctly or at all.
    Code:
    java.lang.NoClassDefFoundError: org/bukkitcontrib/event/inventory/InventoryListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:219)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:32)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at us.ClockworkXCV.ArmorKeep.ArmorKeep.onEnable(ArmorKeep.java:26)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: org.bukkitcontrib.event.inventory.InventoryListener
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 26 more
    I'll add more to this section as necessary...

    Known Bugs
    • The order of the values in the config seem to switch around randomly. This isn't a problem, it's just a little strange.
    To-do List:
    • Add Permission nodes:
      • armorkeep.allarmor
      • armorkeep.allcommands
    • Add/Improve support for Bukkit's built-in permissions
    Changelog:
    Version 1.2
    • Updated to Spout (the new BukkitContrib)
    Version 1.1
    • Optimized and organized code for existing commands
    • Added the /armorkeep set command for editing the config in-game or from the console
    Version 1.0
    • Seperated permissions for each piece of armor
    • Added commands:
      • /armorkeep check - Manually initiate a check on a player you suspect of finding a way around ArmorKeep's system
      • /armorkeep version - Display the current version of ArmorKeep installed on the server
      • /armorkeep help - Display the help message about using ArmorKeep commands
    • Added a config.yml file with three configurable boolean (true/false) values:
      • LogWhenAUserIsDeniedArmor (defaults to false)
      • LogWhenAUserUsesACommand (defaults to true)
      • ReturnArmorToPlayer (defaults to true)
    • Fixed a minor issue with my constructor
    • Updated package namespace
    Version 0.2
    • Changed the armor check from PLAYER_MOVE to InventoryCloseEvent (thanks to BukkitContrib) making for a much more memory efficient plugin
    • Now requires BukkitContrib (plugin only, not client mod)
    Version 0.1
    • Initial Release of ArmorKeep
    ArmorKeep is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
     
  2. Offline

    Syd

  3. Offline

    Feenix

    you serious? spout :_( well guess i won't get the plugin after all. everytime i tryed to set spout up it didn't work. in my opinion, they made spout too complicated to install so it sucks :p and refuse to get it. too bad would've been cool to prevent plp from using specific armor....... sigh
     
  4. Offline

    Feenix

    doesn't work for me it says is it up to date?
     

Share This Page