Handle 0 online in list command. Fixes #32

This commit is contained in:
mbax 2012-11-15 15:49:50 -05:00
parent 738234a6e6
commit ac48538201

View File

@ -17,6 +17,11 @@ public class CommandList extends Command
StringBuilder users = new StringBuilder();
Collection<UserConnection> connections = BungeeCord.instance.connections.values();
if (connections.size() == 0) {
sender.sendMessage(ChatColor.BLUE + "Currently no players online.");
return;
}
for (UserConnection con : connections)
{
switch (getPermission(con))