From 6c70a7d105aca0c161336575c9460d11d740e252 Mon Sep 17 00:00:00 2001 From: eueln Date: Fri, 31 Oct 2014 13:22:45 -0500 Subject: [PATCH] Properly handle player kick before PlayerJoinEvent Fixes #104 --- .../com/massivecraft/factions/scoreboards/FScoreboard.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java b/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java index 9d0efd4c..04fe86bc 100644 --- a/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java +++ b/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java @@ -40,8 +40,10 @@ public class FScoreboard { public static void remove(FPlayer fplayer) { FScoreboard fboard = fscoreboards.remove(fplayer); - fboard.removed = true; - FTeamWrapper.untrack(fboard); + if (fboard != null) { + fboard.removed = true; + FTeamWrapper.untrack(fboard); + } } public static FScoreboard get(FPlayer fplayer) {