WesJD / AnvilGUI

Capture user input in Minecraft through an anvil GUI in under 20 lines of code
MIT License
475 stars 113 forks source link

Add Response fireEvent #82

Closed xXSchrandXx closed 4 years ago

xXSchrandXx commented 4 years ago

Hi,

I'm new in using your code, but a Response wich just fires the InventoryClickEvent and doing nothing else would help me. Because I'm swapping the Inventorys with my plugin many times, I would love to listen like in my other Menus.

My code: https://github.com/xXSchrandXx/SpigotPlugins/blob/master/AsyncWorldManagerGUI/src/main/java/de/xxschrandxx/awm/gui/menus/ModifierMenu.java

WesJD commented 4 years ago

This is unneeded. You can't open and close an inventory in the same tick anyways. In the onComplete handler, just wait a tick before opening your other menu.