Test what itemslot the player is holding

Discussion in 'Plugin Development' started by Polishgaming, Aug 30, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Polishgaming

    Could someone please give me the class/layout to test if a player is holding a slot 0-8(1-9).

    Thanks,
    ~Polish
     
  2. Offline

    bobacadodl

    player.getInventory().getHeldItemSlot() returns the number of their held slot
     
Thread Status:
Not open for further replies.

Share This Page