HomeJavaModsArmor Event [1.8 / 1.9 / 1.10]
Armor Event [1.8 / 1.9 / 1.10]
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.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Armor Event [1.8 / 1.9 / 1.10] is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10. Downloaded 1,193 times (via Spigot). Download it and open it directly in the game.

Explore more