Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 948 Bytes

File metadata and controls

29 lines (18 loc) · 948 Bytes

ArmorFix

Very basic Paper plugin to create shards, able to repair equipment.

How to use

Admin Command

To create a new shard, do /armorfix give <mode> <amount>. You'll be given an item, and as an admin you can insert it in the economy as it fits you.

The "mode" is an enum (described below) and describes the scope of the reparations. The "amount" is an integer, it's the amount of durability points to restore.

Modes of repair

3 modes exist :

  • ONLY_EQUIPPED : repair only the armor and the OFF_HAND slots by the amount.
  • ONLY_EQUIPPED_PLUS_FIRST_IN_HOTBAR : same as previous, but will also fix the first item in the hotbar of the player using the shard.
  • ALL_INVENTORY : repair what's possible in the inventory.

If nothing can be repaired, the shard will not be consumed.

Versions

  • 1.0.0 : Paper 1.20.4.
  • 1.1.0+ : Paper 1.21.1.