Armor Event [1.8 / 1.9 / 1.10]
1.4This plug-in is an API which allows' developers to check when player's alert their armor status.
Requires Java version: 8
Description
Armor Event plug-in checks and calls a custom event when a player equips or unequips a piece of their armor. The custom events are very simple to use (An example can be found here).
This plug-in is mainly designed for developers whom are making a plug-in such as a custom enchantment plug-in.
How to use the API?
To use the API, all you have to do is listen for two events.
'PlayerArmorEquipEvent' - This is called when a player equips a piece of armor.
The possible objects to fetch:
- event#getPlayer() - This returns the player whom equipped a piece of armor.
- event#getItemStack() - This returns the item (armor) which was equipped.
'PlayerArmorUnequipEvent' - This is called when a player unequips a piece of armor.
The possible objects to fetch:
- event#getPlayer() - This returns the player whom unquipped a piece of armor.
- event#getItemStack() - This returns the item (armor) which was unequipped.
Performance
Armor Event is a very simple plug-in, and will cause no interference with lag, as everything is kept to a minimal. Additionally, there is minimal threading occurring, and therefore preventing any issues regarding the server - You won't be able to locate this plug-in in your server timings report, unless your use f1 + 3.
Bugs / Issues
If you encounter any bugs or issues, then please make a ticket request here. Any private messages or e-mails will be ignored.
Source Code
You can view the source code here.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta