handleLeaveItem

fun handleLeaveItem(player: ServerPlayer, hand: InteractionHand): Boolean(source)

Checks whether the player is holding the leave item and, if so, removes them from the game.

Return

true if the leave item was used and the player was removed