[Help] Watch an inventory slot for changes

Discussion in 'Plugin Development' started by Valrix, Feb 10, 2011.

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


    I've been trying to find a way to watch inventory for changes and since Event.Type.INVENTORY_CHANGE isn't yet added and I can't get PlayerItemHeldEvent to fire at all, I can't figure a way to do this. Does anyone have any ideas or want to add the INVENTORY_CHANGE event to Bukkit?
  2. Offline

    Ryan Carretta

    This works for me. There's a goof in the on____ function naming, though. The method you need to define is

    void onItemHeldChange(PlayerItemHeldEvent)
  3. Offline


    That would only update inventory if the player scrolled through the quick bar. What's the context of needing to check this?
Thread Status:
Not open for further replies.

Share This Page