Properly handle player kick before PlayerJoinEvent

Fixes #104
This commit is contained in:
eueln 2014-10-31 13:22:45 -05:00
parent 3e15189c11
commit 6c70a7d105

View File

@ -40,8 +40,10 @@ public class FScoreboard {
public static void remove(FPlayer fplayer) { public static void remove(FPlayer fplayer) {
FScoreboard fboard = fscoreboards.remove(fplayer); FScoreboard fboard = fscoreboards.remove(fplayer);
fboard.removed = true; if (fboard != null) {
FTeamWrapper.untrack(fboard); fboard.removed = true;
FTeamWrapper.untrack(fboard);
}
} }
public static FScoreboard get(FPlayer fplayer) { public static FScoreboard get(FPlayer fplayer) {