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)
|
||||
return;
|
||||
|
||||
int playerCount = _playerCountManager.getPlayerCount();
|
||||
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
{
|
||||
//Dont Waste Time
|
||||
@ -733,11 +735,10 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
obj.getScore(" ").setScore(line--);
|
||||
|
||||
//Players
|
||||
int playerCount = _playerCountManager.getPlayerCount();
|
||||
obj.getScore(C.cYellow + C.Bold + "Players").setScore(line--);
|
||||
player.getScoreboard().resetScores(_lastPlayerCount + "");
|
||||
obj.getScore(playerCount + "").setScore(line--);
|
||||
_lastPlayerCount = playerCount;
|
||||
|
||||
|
||||
//Space
|
||||
obj.getScore(" ").setScore(line--);
|
||||
@ -770,6 +771,8 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
obj.getScore("www.mineplex.com").setScore(line--);
|
||||
obj.getScore("----------------").setScore(line--);
|
||||
}
|
||||
|
||||
_lastPlayerCount = playerCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user