diff --git a/src/main/java/me/A5H73Y/Parkour/Managers/ChallengeManager.java b/src/main/java/me/A5H73Y/Parkour/Managers/ChallengeManager.java index 88cce88b..e2767762 100644 --- a/src/main/java/me/A5H73Y/Parkour/Managers/ChallengeManager.java +++ b/src/main/java/me/A5H73Y/Parkour/Managers/ChallengeManager.java @@ -90,7 +90,9 @@ public void terminateChallenge(Player leaver) { String terminateMessage = Utils.getTranslation("Parkour.Challenge.Terminated") .replace("%PLAYER%", leaver.getName()); leaver.sendMessage(terminateMessage); - opponent.sendMessage(terminateMessage); + if (opponent != null) { + opponent.sendMessage(terminateMessage); + } removeChallenge(challenge); } }