Merge branch 'scoreboard' of SteamWar/SpigotCore into master
Dieser Commit ist enthalten in:
Commit
787543ab59
@ -41,34 +41,34 @@ public class SWScoreboard {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean removeScoreboard(Player player) {
|
public static boolean removeScoreboard(Player player) {
|
||||||
if(playerBoards.containsKey(player)) {
|
if(!playerBoards.containsKey(player))
|
||||||
switch (Core.getVersion()) {
|
return false;
|
||||||
case 8:
|
|
||||||
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
switch (Core.getVersion()) {
|
||||||
break;
|
case 8:
|
||||||
case 9:
|
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
((SWScoreboard_9) playerBoards.get(player)).deleteScoreboard(player);
|
break;
|
||||||
break;
|
case 9:
|
||||||
case 10:
|
((SWScoreboard_9) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
((SWScoreboard_10) playerBoards.get(player)).deleteScoreboard(player);
|
break;
|
||||||
break;
|
case 10:
|
||||||
case 12:
|
((SWScoreboard_10) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
((SWScoreboard_12) playerBoards.get(player)).deleteScoreboard(player);
|
break;
|
||||||
break;
|
case 12:
|
||||||
case 14:
|
((SWScoreboard_12) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
((SWScoreboard_14) playerBoards.get(player)).deleteScoreboard(player);
|
break;
|
||||||
break;
|
case 14:
|
||||||
case 15:
|
((SWScoreboard_14) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
break;
|
||||||
break;
|
case 15:
|
||||||
default:
|
((SWScoreboard_15) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
return false;
|
break;
|
||||||
}
|
default:
|
||||||
playerBoards.remove(player);
|
return false;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
playerBoards.remove(player);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Scoreboard Updater
|
//Scoreboard Updater
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren