From a5f2b423d41e139bbd0dac87cbb46c42b9ce08cf Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Jan 2015 11:07:32 +1100 Subject: [PATCH] #1325 - Fix /server with extra args. --- .../java/net/md_5/bungee/module/cmd/server/CommandServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java b/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java index a92bc2dd1..36da83e29 100644 --- a/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java +++ b/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java @@ -80,7 +80,7 @@ public class CommandServer extends Command implements TabExecutor { return ( args.length > 1 ) ? Collections.EMPTY_LIST : Iterables.transform( Iterables.filter( ProxyServer.getInstance().getServers().values(), new Predicate() { - private final String lower = args[0].toLowerCase(); + private final String lower = ( args.length == 0 ) ? "" : args[0].toLowerCase(); @Override public boolean apply(ServerInfo input)