Skip to content

Commit

Permalink
Do not trigger event on cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraculixxT authored Feb 18, 2024
1 parent f0e70cc commit 03c321b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public void onEnable() {

@EventHandler(priority = EventPriority.MONITOR)
public void onPlayerChat(AsyncPlayerChatEvent event) {
if (event.isCancelled()) return;
BlueMapAPI api = BlueMapAPI.getInstance().orElse(null);
if (api == null) return; //BlueMap not loaded, ignore

Expand Down

0 comments on commit 03c321b

Please sign in to comment.