12
0

code cleanup and hotfix #29

Zusammengeführt
Lixfel hat 1 Commits von scoreboard nach master 2020-01-08 06:52:09 +01:00 zusammengeführt

Datei anzeigen

@ -41,8 +41,10 @@ public class SWScoreboard {
return true;
}
public boolean removeScoreboard(Player player) {
if(playerBoards.containsKey(player)) {
public static boolean removeScoreboard(Player player) {
if(!playerBoards.containsKey(player))
return false;
switch (Core.getVersion()) {
case 8:
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
@ -68,8 +70,6 @@ public class SWScoreboard {
playerBoards.remove(player);
return true;
}
return false;
}
//Scoreboard Updater
static {