fixed player count
This commit is contained in:
parent
98e91d29f6
commit
66011cde8c
@ -697,6 +697,8 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
if (_scoreboardTick != 0)
|
if (_scoreboardTick != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
int playerCount = _playerCountManager.getPlayerCount();
|
||||||
|
|
||||||
for (Player player : UtilServer.getPlayers())
|
for (Player player : UtilServer.getPlayers())
|
||||||
{
|
{
|
||||||
//Dont Waste Time
|
//Dont Waste Time
|
||||||
@ -733,11 +735,10 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
obj.getScore(" ").setScore(line--);
|
obj.getScore(" ").setScore(line--);
|
||||||
|
|
||||||
//Players
|
//Players
|
||||||
int playerCount = _playerCountManager.getPlayerCount();
|
|
||||||
obj.getScore(C.cYellow + C.Bold + "Players").setScore(line--);
|
obj.getScore(C.cYellow + C.Bold + "Players").setScore(line--);
|
||||||
player.getScoreboard().resetScores(_lastPlayerCount + "");
|
player.getScoreboard().resetScores(_lastPlayerCount + "");
|
||||||
obj.getScore(playerCount + "").setScore(line--);
|
obj.getScore(playerCount + "").setScore(line--);
|
||||||
_lastPlayerCount = playerCount;
|
|
||||||
|
|
||||||
//Space
|
//Space
|
||||||
obj.getScore(" ").setScore(line--);
|
obj.getScore(" ").setScore(line--);
|
||||||
@ -770,6 +771,8 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
obj.getScore("www.mineplex.com").setScore(line--);
|
obj.getScore("www.mineplex.com").setScore(line--);
|
||||||
obj.getScore("----------------").setScore(line--);
|
obj.getScore("----------------").setScore(line--);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_lastPlayerCount = playerCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user