#cannot cancel event of inventory click event
1 messages · Page 1 of 1 (latest)
You are cancelling the event LONG after it has been processed
@EventHandler
public onEvent(Cancellable event) {
invokeLater(() -> event.setCancelled(true));
}
Or variations thereof are always asking for trouble
This means you need to query your database synchronously... If you are lucky your code is structured in a way that it didn't make sense to put it async in the first place