CommandHelper

CommandHelper

46.5k Downloads

modify_event() on inventory_click event not functioning.

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2957 - Reported by VergilPrime

modify_event('slotitem',null) or modify_event('cursoritem',null) do not function. They do not function with an itemarray in place of null either. EDIT: While in creative.

commented

Comment by jb_aero

The documentation should say modifying cursor item will not work, because you can't do that with bukkit (well you can but it isn't guaranteed to do what you expect (see http://jd.bukkit.org/rb/apidocs/org/bukkit/event/inventory/InventoryClickEvent.html#setCursor(org.bukkit.inventory.ItemStack))

I don't see why modifying the slot shouldn't work though.

commented

Comment by PseudoKnight

Modified the event documentation on modifying cursoritem to reflect Bukkit notes.