lockInventorySlot

open override fun lockInventorySlot(player: Player, slot: Int, item: ItemStack?)

Locks an inventory slot for the player by sending a fake item packet.

Parameters

player

The target player.

slot

The slot index to lock.

item

The item to display in the locked slot, or null to show empty.