Repair - DevLan-Cybersecurity/arvan GitHub Wiki

Repair Share

Every player can repair items for them self and others in anvil regular way. But, who has the special permission to use commands to repair (as for Premium Pass users), he will be prevented for repairing items for others. They still can use items and repairs normaly for them selfs

When a player, that have not this special permission, pick up or select an item in inventory that has been repaired with a command, the durability will automatically be set on 1 and an additional lore line will be added when player can't use that item. This will not be shown for owner of item. Interact event will be canceled to prevent item usage and the player will get message informing about item usage he dint repaired him self

Rapair

Player will be required to confirm repair action by clicking message in chat. Item repair with the command /repair will cost money depending on setup

Base price to repair item

  • BasePrice: 100.0

Item repair cost will depend on how baddly item is damaged

  • WorthPercentage: 10.0

If item has more then one enchantment, then prices will be added up

  • EnchantWorthPercentage: 20.0