diff --git a/lib/playerPlugins/inventory.js b/lib/playerPlugins/inventory.js new file mode 100644 index 0000000..104459e --- /dev/null +++ b/lib/playerPlugins/inventory.js @@ -0,0 +1,11 @@ +module.exports=inject; + +function inject(serv, player) +{ + heldItemSlot=0; + player._client.on("held_item_slot", function (packet) { + heldItemSlot = packet.slotId; + }); + + player.heldItemSlot = heldItemSlot; +}