Merge branch 'fixingNPE' of SteamWar/SpigotCore into master
Dieser Commit ist enthalten in:
Commit
c761d67f10
@ -45,6 +45,7 @@ public class SWScoreboard {
|
|||||||
if(!playerBoards.containsKey(player))
|
if(!playerBoards.containsKey(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
try{
|
||||||
switch (Core.getVersion()) {
|
switch (Core.getVersion()) {
|
||||||
case 8:
|
case 8:
|
||||||
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
@ -65,6 +66,9 @@ public class SWScoreboard {
|
|||||||
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}catch(NullPointerException e){
|
||||||
|
//ignored
|
||||||
|
}
|
||||||
playerBoards.remove(player);
|
playerBoards.remove(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren