Sueta

Armor Event [1.8 / 1.9 / 1.10]

1.4

This plug-in is an API which allows' developers to check when player's alert their armor status.

·Plugin

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 →