Fixing NPE on disconnect
Dieser Commit ist enthalten in:
Ursprung
151ec960bb
Commit
b5c1eb0823
@ -45,25 +45,29 @@ public class SWScoreboard {
|
|||||||
if(!playerBoards.containsKey(player))
|
if(!playerBoards.containsKey(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switch (Core.getVersion()) {
|
try{
|
||||||
case 8:
|
switch (Core.getVersion()) {
|
||||||
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
case 8:
|
||||||
break;
|
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
case 9:
|
break;
|
||||||
((SWScoreboard_9) playerBoards.get(player)).deleteScoreboard(player);
|
case 9:
|
||||||
break;
|
((SWScoreboard_9) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
case 10:
|
break;
|
||||||
((SWScoreboard_10) playerBoards.get(player)).deleteScoreboard(player);
|
case 10:
|
||||||
break;
|
((SWScoreboard_10) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
case 12:
|
break;
|
||||||
((SWScoreboard_12) playerBoards.get(player)).deleteScoreboard(player);
|
case 12:
|
||||||
break;
|
((SWScoreboard_12) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
case 14:
|
break;
|
||||||
((SWScoreboard_14) playerBoards.get(player)).deleteScoreboard(player);
|
case 14:
|
||||||
break;
|
((SWScoreboard_14) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
case 15:
|
break;
|
||||||
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
case 15:
|
||||||
break;
|
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}catch(NullPointerException e){
|
||||||
|
//ignored
|
||||||
}
|
}
|
||||||
playerBoards.remove(player);
|
playerBoards.remove(player);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren