Solved Disable putting armor off

Discussion in 'Plugin Development' started by Rowinvd, Feb 20, 2015.

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

    Rowinvd

    How can i disable putting armor off?
     
  2. i' try to use the InventoryClickEvent and check for
    Code:
    event.getSlotType().equals(SlotType.ARMOR)
    
     
  3. Offline

    Rowinvd

    @sn1cko Its working, but if I spam-click it's still not working.
     
  4. that would be a bug...
    you can't click if you cancel the event...
    so if you spam click you get it and close the inventory again it should be back to normal again
     
  5. Offline

    Rowinvd

    Nope, i can upload a small video to show it.
    EDIT: Its a litte buggie but its working.
     
  6. normally there's no way to pass the InventoryClickEvent
     
  7. Offline

    Rowinvd

    It is'nt glitchy anymore wut. Thanks for helping, @sn1cko!

    @sn1cko Oh, its still buggy: I'f I click on a item in my inventory ( Not the armor ) Its teleporting back ( It cancelled )

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: Feb 20, 2015
Thread Status:
Not open for further replies.

Share This Page