隐形盔甲
展示你的皮肤,同时保留盔甲效果
很遗憾,尽管到处都有很多酷炫的皮肤,但你却无法展示它们,因为大部分时候都必须被盔甲覆盖……看起来都一样,你无法表达个性和风格……现在通过这个插件,你可以自豪地向所有人展示你酷炫的皮肤,而不会失去盔甲带来的好处。
基本用法
- 输入 "/ss" 命令(代表 "show skin" 或 "save suit")
- 你当前装备的盔甲套装将被保存在安全的地方
- 当你受到可减免的伤害时,盔甲会自动重新装备以吸收伤害
- 你会收到关于盔甲耐久度变化的聊天消息
- 再次输入 "/ss" 命令来显示你的盔甲并使其保持可见状态
功能特性
- 像往常一样安装插件:将 .jar 文件复制到 plugins 文件夹并重启服务器,兼容所有服务器版本
- 在穿戴保存的盔甲之前,对伤害事件进行伤害重新计算
- 盔甲状态消息,以防止未察觉的损坏和处于无保护状态
- 部分附魔兼容性,详见下方说明
- 自定义插件行为(自动隐藏盔甲超时时间、显示消息等)
- 盔甲保存在隐藏的箱子中,因此与世界数据一起保存
- 防止过度装备以避免物品丢失或复制的安全机制
- 支持本地化
工作原理
- 在伤害发生前捕获盔甲可减免的伤害
- 检查玩家是否有已保存的盔甲套装
- 重新计算盔甲防护值
- 查看是否有适用的附魔并重新计算其数值(详见下方说明)
- 在指定超时时间内可见地装备盔甲
- 如果继续受到伤害,超时时间会更新,直到显式装备或卸下盔甲
盔甲与附魔
所有盔甲部件、南瓜头和生物头颅都兼容……但只有“保护”类附魔兼容(那些在受到伤害时直接吸收生命值损失的附魔,包括摔落保护)……掉落的铁砧也兼容。
对于“水下”和其他技能类附魔,你必须根据情况手动装备盔甲……耐久度和“荆棘”附魔是在伤害发生后处理的,与本插件无关,因此物品损坏、修复和伤害反弹等功能开箱即用。
源代码
可以在 GitHub 上查看源代码……欢迎浏览代码了解插件的工作原理,并做出贡献。
请报告漏洞
我努力使这个插件没有漏洞,但如果你发现了任何问题,我将感激你在下面报告以便修复。在这种情况下,请同时包含重现问题的步骤。
更多信息
原名“ShowSkin”,这实际上不是一个“隐形盔甲”插件,而是一个“无伤害时隐藏盔甲”的插件。
我决定制作它是因为我曾经使用过“armorhider”插件,但有时我的盔甲损坏了我都没有察觉,直到死亡(我曾建议添加警告但未生效)……此外,我注意到它现在已经无用,因为伤害减免(盔甲、附魔等)是在伤害事件发生之前计算的,所以即使你的盔甲及时装备了也无济于事,你将承受全额伤害。
我还看到一些插件通过 ProtocolLib 实现类似目标,但其缺点是由于它在网络层面工作,你总是能看到自己的盔甲处于装备状态,无论你是否对其他玩家隐藏,你都看不到自己的皮肤。
orgullosamente hecho en chile

Invisible Armor
Show your skin without losing armor
Is a shame that while there are tons of cool skins everywhere you can't show it because mostly must be covered by the armor... all look the same, you cant express your individuality and style... now with this plugin you can proudly show your cool skin to everyone without lose armor benefits
General usage
- type "/ss" command (stands for "show skin" or "save suit")
- your currently equipped armor suit will store in a safe place
- when you recieve some mitigable damage, your armor will be re-equipped just to absorb it
- you will recieve chat messages on armor durability changes
- type "/ss" command to show your armor again and let it accesible
Features
- install plugin as usual, by copying .jar file to plugins folder and reload server, compatible with all server versions
- DAMAGE RECALCULATION on damage event before wear saved armor
- armor STATUS MESSAGES, to prevent unnoticed breaks and going unprotected
- some ENCHANTMENTS COMPATIBILITY, see note below
- plugin action customization (auto hide armor timeout, display messages, etc)
- armor saved in hidden chests, so are saved together with the worlds
- security against over equipping to avoid item loss or duplication
- localization support
How plugin works
- captures armor mitigable damages before they occurs
- check if player has a saved armor suit
- recalculates armor protection values
- look if there is some applicable enchantment and recalculate values too (see notes below)
- visibly equip armor for specified timeout
- on more damage coming timeout will update, until explicit equip or unequip
Armor and enchantments
all armor pieces, pumpkins and mob heads are compatible... but the only compatible armor enchantments are the "protection" ones (those that directly absorb some health loss when damage occurs, including fall protection)... falling anvils are also compatible
for "underwater" and other skill enchantments you must equip your armor explicitly according situation... durability and "thorns" enchantment are processed after damage and has nothing to do with this plugin, so things like item breaking, unbreaking and damage bounce work out of the box
Source code
can view source at GitHub... feel free to browse the code and see how plugin works, and do some contribution
Please report bugs
i worked hard making this plugin bug free, but in case you found some one i will appreciate if you report here to fix it, in that case please also include steps to reproduce the problem
More info
Formerly "ShowSkin", this is not really an "invisible armor" plugin, but a "hide armor while no damage" one
I decided to make it because i used to use "armorhider" plugin a lo,t but sometimes i got my armor broken without notice until my death (i suggested put warnings without beign heard)... moreover i noted is useless by now because damage reductions (armor, enchantments, etc.) are calculated BEFORE damage event occurs, so even though your armor were timely equipped it wont help and you will get full damage
i also saw some plugins that reach similar goals trough ProtocolLib, but the downside is as it works over the network you always see your armor equipped, you dont see your own skin regardless you are hiding for others or not
orgullosamente hecho en chile

评论 0
登录后参与评分
还没有评论,来抢沙发吧