repair

abstract fun repair(    player: Player,     silent: Boolean,     executor: CommandSender? = null,     sendMessage: Boolean = true)

Method to repair a players item in hand.

Parameters

player

the player whose item you want to repair

silent

if a target player exists, they will recieve a message if this is true

executor

is nullable. if it is null, the player ran the command on themselves, otherwise someone else ran it on the player.

sendMessage

if it should send the message to the player saying their item was repaired.