How to add arguments from other voids

Discussion in 'Spigot Plugin Development' started by Livaco, May 23, 2017.

  1. Yes im back on here posting for help for a second time...
    So i was adding click events to a GUI, and i had to add it outside of the command (onInventoryClick doesent work with case blocks), and i cant implement the arguments from the GUI command, to the click code. Anyone know how to do this?

  2. 1. The onInventoryClick event must have the @EventHandler annotation
    2. I am pretty sure you can't have extra arguments to event handlers since spigot can't assign values to them, where do you expect the values to come from? It would be better to have it check for an external variable, since everything from the arguments is just item checking, really, except the Inventory, which can just be done by checking equals for the name.