diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerQuitsScriptEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerQuitsScriptEvent.java index b91b72d6ed..efeb20be69 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerQuitsScriptEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerQuitsScriptEvent.java @@ -87,6 +87,8 @@ public void onPlayerQuits(PlayerQuitEvent event) { return; } if (!event.getPlayer().isOnline()) { // Workaround: Paper misfires this event extra times after the player is already gone. + event.setQuitMessage(null); // Block the message too since it's obviously not valid for the message to show a second time. + // Also note that Paper literally has a commit that just removes a warning that would have helped catch issues like this because I guess they just like having errors https://i.alexgoodwin.media/i/misc/a8f5c3.png return; } this.event = event;