Solved How to hide armor

Discussion in 'Plugin Development' started by Tim_M, Aug 19, 2021.

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

    Tim_M

    I'm trying to hide player armor when they have the invisibility potion effect. I do this by sending to all online players a unequip packet. This works great except that the armor also dissapears from the player's inventory. I made it so the armor comes back ones the effect runs ut. But while the effect is on the player can equip armor on the "empty" armor slots and that will erase the previous armor. How can I fix this?
     
  2. Offline

    KarimAKL

    @Tim_M Try sending the packet to everyone except for the invisible player.
     
  3. Offline

    Tim_M

    I cant believe I didn't think of that. Thanks!
     
    KarimAKL likes this.
Thread Status:
Not open for further replies.

Share This Page