From 04b52aa4f4fde52ccb23f638b2d4a14de1638809 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 3 Nov 2013 10:02:37 +1100 Subject: [PATCH] Close #699 - case sensitivity of command tab complete --- .../src/main/java/net/md_5/bungee/command/PlayerCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/command/PlayerCommand.java b/proxy/src/main/java/net/md_5/bungee/command/PlayerCommand.java index a0c9164e..1d41f642 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/PlayerCommand.java +++ b/proxy/src/main/java/net/md_5/bungee/command/PlayerCommand.java @@ -25,13 +25,13 @@ public abstract class PlayerCommand extends Command implements TabExecutor @Override public Iterable onTabComplete(CommandSender sender, String[] args) { - final String lastArg = ( args.length > 0 ) ? args[args.length - 1] : ""; + final String lastArg = ( args.length > 0 ) ? args[args.length - 1].toLowerCase() : ""; return Iterables.transform( Iterables.filter( ProxyServer.getInstance().getPlayers(), new Predicate() { @Override public boolean apply(ProxiedPlayer player) { - return player.getName().startsWith( lastArg ); + return player.getName().toLowerCase().startsWith( lastArg ); } } ), new Function() {