Hello, Is there a way to unregister event listener classes? My idea was to Register them on demand, and unregister it if no longer needed. In example only have certain listeners active while a minigame is running. Thank you
@Lordloss I suggest that you make a boolean "shouldListen" instead, first check that you do would be for that.
@Lordloss @timtower The way to actually unregister all event listeners in an instance is HandlerList.unregisterAll(Listener). Though just letting them live and have a state boolean may be more efficient. I have no idea.