mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-09-10 05:08:04 +02:00
Handle 0 online in list command. Fixes #32
This commit is contained in:
parent
738234a6e6
commit
ac48538201
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user