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,9 +40,11 @@ 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);
if (fboard != null) {
fboard.removed = true; fboard.removed = true;
FTeamWrapper.untrack(fboard); FTeamWrapper.untrack(fboard);
} }
}
public static FScoreboard get(FPlayer fplayer) { public static FScoreboard get(FPlayer fplayer) {
return fscoreboards.get(fplayer); return fscoreboards.get(fplayer);