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
1 changed files with 4 additions and 2 deletions

View File

@ -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) {