ArmorHider [Inactive]
Do you like the protection of armor, but hate the way it looks? Then this is the plugin for you!
Thanks to VariationVault for the video!
Features:
- Use commands to hide any piece of armor or the enchantments on armor
- Use commands to hide another players armor
- Upon taking damage that would be reduced by armor or enchantments, the player's hidden armor will be revealed instantly
- Armor can be automatically re-hidden if the player is granted the appropriate permissions
Falling with hidden Feather Fall enchantment on boots will reveal the enchantment- Removed
Commands:
List of commands:
- /hidearmor <args>
- /showarmor <args>
- /hideenchant <args>
- /showenchant <args>
Aliases:
- /ha for /hidearmor
- /sa for /showarmor
- /he for /hideenchant
- /se for /showenchant
How to:
- /<command> <armor piece> - Runs the specified command on your own armor (i.e. /ha all).
- /<command> all -<armor piece> - Runs the specified command for all armor except the subtracted piece.
- /<command> <player> <armor piece> - Runs the specified command on the provided players armor (i.e. /showarmor Snnappie all).
There are a few different arguments available for each piece of armor. For instance, /ha hat and /hat helmet both do the same thing.
Permissions:
- armorhider.hidehat
- armorhider.hidechest
- armorhider.hidelegs
- armorhider.hideboots
- armorhider.hideall - Allows for the player to use all of the above and /hidearmor all.
- armorhider.hideother - Allows for the player to hide and show other players armor.
- armorhider.hideenchant - Used in combination with the others to allow players to hide enchantments on their armor.
- armorhider.autohide - Allows the players armor to be automatically re-hidden instantly
Source Code:
Want to laugh at my poor programming skills? Or perhaps you'd like to offer advice for me to improve? Whatever your reason - click here!
Planned Features:
Hiding enchantments on armor
Configurable timer to automatically re-hide armor after a player takes damage
- Support for economy mods and a configurable timer to reveal armor
hi... no intention to cross ads, but try my plugin similar to this
https://dev.bukkit.org/projects/invisible-armor
Thank me and the Developer later! Armor Hider for 1.8.8 https://www.spigotmc.org/resources/armorhider.14310/
Yeah, so let's try this plugin!!!!
Installs
Issues command
ARMOR DELETED!!
Ooops, kind of a bug.
(EDIT: i resolved the damage problem HERE)
HEY I DISCOVERED A BIG PROBLEM
damage mitigations (armor, enchantments, etc) are calculated BEFORE damage event occurs
... so on damage event, is not enough this plugin auto equips the armor, because all damage calculations are already done WITHOUT MITIGATIONS, so the plugin also should RECALCULATE them ... so to show your skin by using this plugin is the same as to show it by beign "naked"
i discovered with a snippet i wtote to display EntityDamageEvent parameters .. dont believe me?, stand next an exploding tnt block with a diamond armor set, wearing it and hiding it
You lose protection D: Please fix it!
snappy .. i have an idea
just killed while exploring far away with my backpack full of interesting items, shooted by 1 skeleton! ... i think my armor was messed up and i didnt notice .. can you send messages to the player on armor durability changes while hidden?
@thief001
@sielmeth
well... since some time i noticed this plugin doesnt actually "hides" your armor but "unwears" instead, and stores in some (memory?) place ... so on some damage event it "rewears" to absorb it (... and quickly unwears again if "armorhider.autohide" permission is true)
this is the reason because you cant see your armor bar or your equipped armor in inventory, or many other issues ... so this plugin should be called some like "armor unwearer" or "skin shower" :) ... i have some big concerns that maybe snappie want to clarify
- where is the taken armor stored?
- if i am "hiding" my armor and the server is reloaded (or restarted) will i lose my armor?
- is it possible to auto-wear the armor to see it when open (or call, or show contents of) player inventory in these new minecraft versions?
however the problems this plugin still likes me, please improve it
Hum... When I hide my armor, I lost my armor points (1 attack with armor hiden = 3.5 hearts of damage, and 1 attack with armor showed = 0.5 hearts of damage...) So, hide an armor lost the protections... How to hide an armor without lost the protection please ??
hi Snnappie,
i wonder if you could change a few things in armorhider?
1: if i have an armor hidden, the plugin http://dev.bukkit.org/bukkit-plugins/armorhud/ shows me 0 armor, witch isnt true, since i have one, just hidden.. also some enchants dont triger while hidden. in the same run, my deathchestplugin dosent backup the hidden armor upon death.
so it would be nice, if i can hide the armor ingame, but only for players eyes, so for mc itself its there.. duno if this is possible, i have realy no clue about all this.. just my wishes ;)
2: could you extend this plugin, so i can hide horsearmor too?
else a good plugin :)
Currently, If the player is hiding armor but he forgot it and wear a diamond chest again later when he under attack. The diamond chest would be get remove so I hope you add a feature. Here is a suggestion, Whenever a player use hide armor after this plugin will put some item ( no block ) in the equipment slot and warn player by item lore.
@joshespi
running it on 1.7.9-r0.4, does what it should.
Has anyone had any luck with 1.7.9-R0.2? I have not been able to get this running on our server and we have a few people chomping at the bit for it
@Snnappie
Love It! Players Love It! One flaw so far. When armor is hidden and you get hit with a godsword its a insta kill as if you have no armor on. I just warned my players but it is a downside.
@Snnappie
So, after looking at your code, here are my suggestions:
Use an Enum for armour pieces, that takes varargs for all the aliases. Use Enum#valueOf() to get the armour piece.
Don't initiate so many instances of HideArmour. Just one is fine. It also doesn't need to be in it's own package seeing as it's the only one there.
Don't store Player instances. It's just not good. There's a long explanation involving how the Java GC works. Use names or UUIDs instead.
In ArmorHider#getArmorType(), try calling Enum#name() to check if it contains "HELMET", "LEGGINGS", "CHESTPLATE", or "BOOTS". Cleaner.
That's all I could see.
@micruz1
Just uploaded. Also fixed the aforementioned /ha permissions issue.
Will this be updated to 1.7.9?
@Snnappie
@AT_HE
Hi Snnappie. I suggested this plugin to a Admin for the server where I'm actually playing, and as it turns out, this plugins is having problems with multiworld permissions and perworld plugins (PerWorldPlugins).
The problem: As he told me; sometimes when you come back to the world that has the ArmorHider plugin hidding your armor, you (sometimes) lose the armor that was hidden.
For example: You are in the survival world, then you go to the nether world, and then, when you come back to the survival world, there is a chance that you lose the armor that you had hidden (it doesn't happen always).
A simple solution: Not a clue :S
The best solution: Use ProtolLib and omit the 3D rendering of the armor, as AT_HE said. With this you get rid of a lot of potential bugs, and also get to see the durability and armor bar without having to make the armor visible every time.
I saw this ProtocolLib thread with examples of code to make diferent things, and there was this one, that "Modifies the displayed armor and the held item depending on the observing player." maybe this can guide you a bit.
I hope you decide to do this better solution. Thanks for you time.
@Snnappie
When this get fixed, You may see some donor support on my end.
@zachrywilsn
Right you are - good catch. I'll upload a fix soon.
The inventory thing I'm beginning to think is related to the updateInventory method being deprecated. Bukkit claims it is unreliable.
@Snnappie
Permissons for /sa , /ha, /he, /se all can not be blocked with permissions. tried to negate all the perms you listed above and still can use /sa etc. Please fix this. I cant use it with out the permissions.
Also I can do the armor glitch as stated below as well. I feel its alright to leave it that way though. People who try to glitch it will lose there armor. Seams only fair. :) Would be nice if it worked as it should but I feel that that bug is kinda ok. I would like the perms to work though.