EquipControl
EquipControl
Important
The config layout has changed in 0.4. If you update from a lower version, you need to update your config as well.
Read here for further details.
Summary
EquipControl let's you control which weapons/armor a player can use via Permissions.
You can define which items are checked, what makes this plugin as dynamic as possible.
As of 0.4 you can also restrict the use of named weapons/armor.
Usage
When using a weapon without the permissions, it will not deal any damage.
When wearing a forbidden armor it will moved into the player's inventory after closing it. If it's full the armor will be dropped.
Permissions
Armor Permissions:
equipcontrol.armor.<id>
equipcontrol.armor.<material>
equipcontrol.armor.<material|id>.<nametag>
Weapon Permissions:
equipcontrol.weapon.<id>
equipcontrol.weapon.<material>
equipcontrol.weapon.<material|id>.<nametag>
<id> is the ID of this Item, <material> is the material name defined in bukkit.
<nametag> is the key, used in config, to identify restricted Itemnames.
You can find a list here: Link (1.1)
Config
Only Item-IDs are allowed.
Nametags/keys must be unique in every item but can be duplicated in different items.
IMPORTANT If you use formated item names (like color), you NEED to specifiy the format code in the item name. (§<code>)
To add Items without name restriction, put them under the list: section.
For items with name restriction create a new section
<id>: <nametag1>: "<name of the item>" <nametag2>: "<name of the item>" <nametagX>: "<name of the item>"
Default config:
checked_weapons: list: - 267 - 268 - 272 - 276 283: nametag: "Thors Hammer" checked_armor: list: - 299 - 300 - 301 298: namekey: "Just a Hat" string: weapon: "You don't have the needed permissions to use this weapon" helmet: "You don't have the needed permissions to wear this helemet" chest: "You don't have the needed permissions to wear this chestplate" leggings: "You don't have the needed permissions to wear this leggings" boots: "You don't have the needed permissions to wear this boots" namedarmor: "You don't have the needed permissions to wear %item%" namedweapon: "You don't have the needed permissions to use %item%" CheckArmorOnDamage: false CheckArmorPeriodical: false CheckArmorTimer: 30 #time in seconds useItemName: false
Source
Get the source on GitHub
@bobbshields
For what do you need an updated version? 0.3 should work fine with the lastest CraftBukkit versions.
Is there an updated version somewhere? I don't mind trying out a beta
@Baglex
Just give the permission nodes per world, not global.
Anyway to make this per world?
Can anyone advise weather this plugin will work with Modded item ID's from Tekkit?
Thanks Syd, once its up i will give it a whirl and report back if it doesnt work properly.
@Sorky
Thanks for your report. I just uploaded version 0.3 with this fix. You just need to wait until its approval.^^
Seems to be generating an exception with the newer releases. Can you check into that?
11:51:27 [SEVERE] Could not pass event EntityDamageByEntityEvent to EquipControl org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callEvent(CraftEventFactory.java:80) at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:364) at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:386) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:610) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:212) at net.minecraft.server.EntityArrow.F_(EntityArrow.java:214) at net.minecraft.server.World.entityJoinedWorld(World.java:1264) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:106) at net.minecraft.server.World.playerJoinedWorld(World.java:1246) at net.minecraft.server.World.tickEntities(World.java:1153) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:560) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:461) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftSkeleton cannot be cast to org.bukkit.entity.Player at de.syd.equipcontrol.EquipControl.onDamage(EquipControl.java:146) at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ... 17 more
Still works great on bukkit 1.2.5-r3.1. thanks for the awesome plugin!!
Donation sent! thanks for the great plugin
@defoyboy226
Yes.
Does this work for CB 1.2.5 R1?
@SydMontague
You can probably not send me the nodes you use? :$
@SydMontague
Ah ye, I see :D
Thanks for the help, would take me for ever to get that :D
@Relok
Hm... I´ll maybe look at that. However, I´m using Modifyworld together with mcmmo, too.^^
@SydMontague
Ye but than you block the tools in the world? :P I kinda use your plugin in combo with mcmmo to make people level to use tools and armour. I would still really like it if you could add the option to also block tools :$
@Relok If it's broken I´ll fix it, as I use it on my own server, too.
To block tools I would recommend ModifyWorld (-> PermissionsEx). It's very dynamic if you want to restrict something.
Are you gone update your plugin? And with the option to block tools? :P Hope you will :D
i love this plugin
@RossGosling
Checked your settings? It works fine on my server with PEX and it doesn't matter if you use PEX or bPerm.