diff --git a/core/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java b/core/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java index 28581bb5..7a5138c9 100644 --- a/core/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java +++ b/core/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java @@ -462,7 +462,13 @@ public class DGamePlayer extends DInstancePlayer { */ public void leave(boolean message) { Game game = Game.getByWorld(getWorld()); + if (game == null) { + return; + } DGameWorld gameWorld = game.getWorld(); + if (gameWorld == null) { + return; + } GameRules rules = game.getRules(); delete();