SteamWar/SpigotCore
Archiviert
13
0

Fixing NPE on disconnect

Dieser Commit ist enthalten in:
Lixfel 2020-02-10 14:58:13 +01:00
Ursprung 151ec960bb
Commit b5c1eb0823

Datei anzeigen

@ -45,6 +45,7 @@ public class SWScoreboard {
if(!playerBoards.containsKey(player))
return;
try{
switch (Core.getVersion()) {
case 8:
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
@ -65,6 +66,9 @@ public class SWScoreboard {
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
break;
}
}catch(NullPointerException e){
//ignored
}
playerBoards.remove(player);
}