Merge branch 'scoreboard_fix' of SteamWar/SpigotCore into master
Dieser Commit ist enthalten in:
Commit
be592388fe
@ -41,13 +41,9 @@ public class SWScoreboard {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean removeScoreboard(Player player) {
|
public static void removeScoreboard(Player player) {
|
||||||
if(!playerBoards.containsKey(player))
|
if(!playerBoards.containsKey(player))
|
||||||
return false;
|
return;
|
||||||
|
|
||||||
playerBoards.remove(player);
|
|
||||||
if(player == null)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
switch (Core.getVersion()) {
|
switch (Core.getVersion()) {
|
||||||
case 8:
|
case 8:
|
||||||
@ -68,10 +64,8 @@ public class SWScoreboard {
|
|||||||
case 15:
|
case 15:
|
||||||
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
return true;
|
playerBoards.remove(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Scoreboard Updater
|
//Scoreboard Updater
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren