lockInventorySlot
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.
Locks an inventory slot for the player by sending a fake item packet.
The target player.
The slot index to lock.
The item to display in the locked slot, or null to show empty.