SteamWar/SpigotCore
Archiviert
13
0

Merge branch 'scoreboard_fix' of SteamWar/SpigotCore into master

Dieser Commit ist enthalten in:
Lixfel 2020-01-12 18:51:28 +01:00 committet von Gitea
Commit be592388fe

Datei anzeigen

@ -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