Only show hidden player count, if it's more than 0

This commit is contained in:
snowleo 2011-07-18 05:45:05 +02:00
parent c1c3005454
commit fd1256b449

View File

@ -47,7 +47,7 @@ public class Commandlist extends EssentialsCommand
charge(sender);
StringBuilder online = new StringBuilder();
online.append(ChatColor.BLUE).append("There are ").append(ChatColor.RED).append(server.getOnlinePlayers().length - playerHidden);
if (showhidden)
if (showhidden && playerHidden > 0)
{
online.append(ChatColor.GRAY).append("/").append(playerHidden);
}