How can I hide a Item in a Players hand

Discussion in 'Plugin Development' started by lgplay, Jun 2, 2020.

Thread Status:
Not open for further replies.
  1. Since I can't detect if a player right clicks if he has no Item in the Hand and doesn't click on a block, Can I somehow hide the Item that he is holding?
     
  2. Offline

    TerroDoor

    you can actually check if a player haS no item in hand by doing a null check.

    ‘If (player.getIteminMainHand() == null)’


    Sent from my iPhone using Tapatalk
     
  3. Offline

    KarimAKL

    @TerroDoor This thread is a follow-up of this one; they can't check the item because the event is never called.

    @lgplay yPedx gave a suggestion in the other thread.
     
Thread Status:
Not open for further replies.

Share This Page