ArmorPerms
Description
ArmorPerms is an extremely lightweight plugin that allows you to control who can wear what types of armor by using permissions nodes.
Configuration
You can configure which item id's will be checked and which won't.
# ArmorPerms v1.0 Config ArmorIDs to check: - 310 - 311 - 312 - 313
Permissions
armorperms.helmet armorperms.chestplate armorperms.leggings armorperms.boots armorperms.wear.<material>
(For instance: armorperms.wear.DIAMOND_HELMET or armorperms.wear.GOLD_HELMET)
All of the permissions are defaulted to op.
The materials are:
- DIAMOND
- GOLD
- CHAINMAIL
- IRON
- LEATHER
Just remember that it's case-sensitive.
Confirmed that this is NOT true if you are using PermissionsEX. Not sure about other permissions managers though.
ChangeLog
- v2.3 - Rebuilt with latest Bukkit. - Should work now...
- v2.0 - Updated for 1.3.1, Hopefully fixed errors with some Linux-based servers
- v1.0 - Initial Release
Important Notes
Source on GitHub
@rsmKaelub
You may see an update soon. Reworking this plugin is on my to-do list.
This can be mod friendly if the plugin uses item ids only instead of checking for the names. I tested with an armor that has the item id 5323 and it didn't work.
Any chance we could see this work for all item ids?
PS. This plugin will be an awesome addition to our rpg system we're developing, but it has to be able to work with all item ids for different mods.
there arent any commands
it dosent work correctly...
when i give a group only the permissions for
leather chainmail and iron they can also wear gold armor
a few users in the group can also wear diamond armor...
=(
@kdude63
It doesn´t, too bad.. But I heard Staartvin is going to take over the project, so hopefully there will be a new update soon, thank you!
@TheDavroar
It might, I haven't tested it.
Still works for 1.4.7?
@Qwahchees
I'm not entirely sure why you ask.
Anyway, I would think it would be. I have no idea though as I haven't done anything with enchantments.
@kdude63
Is enchantment data even accessible by Bukkit? Isn't it consider NBT?
@never2nv
I take it the notification system isn't working for you either? It's annoying. So sorry for the even later response. The idea to add permissions for the enchantments is a good idea, but I can't start working on it until I fix the rest of the plugin. I've been trying to clean up the permissions, and fix how the armor is detected so it doesn't just do it when the inventory is closed. Been a pain in the ass thusfar.
I'm thinking that I may actually have to take you up on the offer to help code plugins for the server. Though with the amount of free time I've had, I may not be able to.
And as far as the idea to add different buffs and resistances to the various types of armor, I'm going to have to decline that one. I'd really like to just stay true to the name of the plugin, and the basic idea of controlling who wears what based on permissions.
@kdude63 Sorry for late response:
No problem and yes your plugin is a staple for us, a younger admin of mine pointed out your plugin around September and we tried it out and I appreciated it.
As far as suggestions, hmmm only thing I could think of is....
Also if you ever get bored, you can pm me as we could use some custom coders for our servers from prison, survival, freebuild, pvp and minez clone. You can also signup at our site FNGnation.net and use shoutbox or forums there, I'll see it right away.
Just wanted to say thanks for the plugin still using it and works great even on new bukkit :p
@never2nv
Wow. I feel stupid for not seeing the bug there.
Yeah, It only checks for the armor when the inventory is closed.
I'll fix it as soon as I have time. >_<
@never2nv
Wow. I honestly didn't think this plugin would be a staple in any public server when I started it.
I'm glad people like it. Any suggestions, other than Factions integration and mod compatibility?
FNG Nation uses this on our official prisons server. Just wanted to say nice work.
Bug?: Prolly already know about it but anyway:
When users on my prison server go into freeworld after theyre paroled rank, and come back into prison world... we give them perms for all armor in freeworld of course but dont allow diamond in the prison to make it fair for all. When they come back into prison from freeworld wearing full diamond armor, it'll let them keep the armor until they look into their inventories.
I guess the way its implemented is moreso from them putting it in while in the world vs already having it on entering the world?
Using ArmorPerms v2.3 CraftBukkit 1.3.1 -R2.0
Dafuq Bukkitdev‽
Still not receiving any fucking emails for comments. :l
@penorzilla
My friend suggested that I make a version that is compatible with Tekkit. So this isn't new to me.
Don't get me wrong though, I love the idea... I just haven't the time lately to do it. :/
As far as a sister project that does this to weapons, I like the idea too; but the same applies.
I hate school. :l
@Jasonfrog
That is so far out of my league... Not going to happen any time soon, if ever. :/
I had enough fun working on this plugin, and I struggle just to keep it updated.
Let alone integrate features that use APIs from other plugins and whatnot. :s
This plugins will be amazing if it works with factions plugin so, like Faction Moderator can only wear gold armour and Faction Admin can only wear diamond armour and other members can only wear like leather armour. This will help define their rank in Big Faction Server
Would be nice to be able to use this on modded items as well.
Would also be nice to see a sister project that would prevent weapons as well :)
@imaapseudonym
All of the permissions nodes are defaulted to false, thus adding "-armorperms.<armor>" shouldn't do anything. I don't think... Um. I'll look into issues with 1.3.1.
@thatweirdnerdyguyfan
That's... Odd. I'll try and look into it.
I'm really sorry to both of you for taking so damn long to respond... I never got email notifications about your comments. -.-
it does not seem to work in 1.3.1, i placed the file in the plugins folder and 1. it did not make a file where its config is. and well if thats normal then ok. 2. none of the permissions work. like at all. they do not prevent people from wearing any type of armor. i checked every armor type or material and regardless of whether they had or did not have the permission they could still wear them.