Skip to content

Commit

Permalink
extra hard workaround for Paper being bad
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 30, 2021
1 parent 0b8ef2c commit 655086f
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit 655086f

Please sign in to comment.