Calculate the player count without offline players (FS-247) (#68)

Co-authored-by: Ryan <Wild1145@users.noreply.github.com>
This commit is contained in:
Nathan Curran
2021-05-23 00:40:55 +10:00
committed by GitHub
parent 9ff5da8d8f
commit d047cfc8ff
3 changed files with 15 additions and 5 deletions

View File

@ -101,8 +101,7 @@ public class Command_list extends FreedomCommand
}
else
{
int count = server.getOnlinePlayers().size() - AdminList.vanished.size();
onlineStats.append(ChatColor.BLUE).append("There are ").append(ChatColor.RED).append(count < 0 ? 0 : count)
onlineStats.append(ChatColor.BLUE).append("There are ").append(ChatColor.RED).append(FUtil.getFakePlayerCount())
.append(ChatColor.BLUE)
.append(" out of a maximum ")
.append(ChatColor.RED)