From fd1256b449e36c66c40b895344584050502a5fd4 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 18 Jul 2011 05:45:05 +0200 Subject: [PATCH] Only show hidden player count, if it's more than 0 --- .../src/com/earth2me/essentials/commands/Commandlist.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java index 445db4597..29afb7b71 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java @@ -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); }