SelfRepair - Repair your items with XP!
Description
SelfRepair is a lightweight plugin that allows players to repair their damaged items using experience points. This plugin is particularly useful for servers looking for a balanced and fair way to repair items with the Mending enchantment.
Features
[]Repair items directly with XP using a simple command
[]Items require the Mending enchantment
[]Fair XP costs based on damage and number of enchantments
[]Fully configurable (cooldowns, costs, messages)
[]Permission system for different player groups
[]In-game configuration reload function
Commands
[]/selfrepair - Repairs the item in your hand
Permissions
[]selfrepair.use - Allows usage of the /selfrepair command
Configuration
All aspects of the plugin are configurable:
[]Cooldown time between repairs
[]Cost multipliers for damage and enchantments
[]All messages can be customized
[]Placeholders for dynamic values (%cost%, %time%)
Default Configuration
Code (YAML):
Cooldown in milliseconds (default
: 30 minutes
)
cooldown
: 1800000
Cost factors
repair-cost-factor
: 2.0
# Factor for damage value
enchantment-cost-factor
: 3.0
# Factor per enchantment
Messages
messages:
player-only
:
"&cThis command is only available for players."
no-permission
:
"&cYou don't have permission to use this command."
no-item
:
"&cYou must hold an item in your hand."
not-repairable
:
"&cThis item cannot be repaired."
no-damage
:
"&cThis item doesn't need repairs."
needs-mending
:
"&cThe item requires the Mending enchantment."
not-enough-xp
:
"&cYou need %cost% XP to repair."
cooldown
:
"&cYou must wait %time% seconds."
success
:
"&aItem repaired for %cost% XP!"
config-reloaded
:
"&aConfiguration reloaded."
Tags: bukkit, spigot, paper, minecraft, repair, mending, tools, armor