Cancelling InventoryClickEvent event causes dupe glitch?

Discussion in 'Plugin Development' started by Shadow_Parallax, Sep 26, 2013.

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

    Shadow_Parallax

    I'm using the InventoryClickEvent to detect when armor is being equipped and unequipped...

    When someone clicks really fast (for example an autoclicker) on a slot with an equippable item it duplicates. The only thing I could see what would cause this is event.setCancelled(true).

    On another note, I prefer not to post any code here since I'm doing this for a private plugin.
     
  2. Offline

    tommycake50

    Its a ghost item most likely. player.updateInventory
     
  3. Offline

    sgavster

    It's just a 'ghost' item, it's fake.

    You can do
    Code:java
    1. player.updateInventory();
    2.  
     
Thread Status:
Not open for further replies.

Share This Page