Merge branch 'scoreboard' of SteamWar/SpigotCore into master
Dieser Commit ist enthalten in:
Commit
787543ab59
@ -41,8 +41,10 @@ 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))
|
||||||
|
return false;
|
||||||
|
|
||||||
switch (Core.getVersion()) {
|
switch (Core.getVersion()) {
|
||||||
case 8:
|
case 8:
|
||||||
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
((SWScoreboard_8) playerBoards.get(player)).deleteScoreboard(player);
|
||||||
@ -68,8 +70,6 @@ public class SWScoreboard {
|
|||||||
playerBoards.remove(player);
|
playerBoards.remove(player);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Scoreboard Updater
|
//Scoreboard Updater
|
||||||
static {
|
static {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren