setHotbarItem

fun Player.setHotbarItem(slot: Int, item: KItem)

Sets the given item at the given slot in the players hotbar

Parameters

slot

number between 0-8 referring to the players hotbar

item

the item to set

Throws

when slot is out of bounds