Delegate tab-completion. Fixes BUKKIT-2181. Adds BUKKIT-2602

CommandMap now contains the functionality for tab completion. This
commit replaces the vanilla implementation and simply delegates it to
the Bukkit API.
This commit is contained in:
Score_Under authored and Wesley Wolfe committed 2012-10-15 03:18:59 -05:00
1 parent 05e889f346
commit 3ce954bb86
2 files changed
+43

No files matched your search

@@ -834,6 +834,8 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
}
public List a(ICommandListener icommandlistener, String s) {
// CraftBukkit start - Allow tab-completion of Bukkit commands
/*
ArrayList arraylist = new ArrayList();
if (s.startsWith("/")) {
@@ -872,6 +874,9 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
return arraylist;
}
*/
return this.server.tabComplete(icommandlistener, s);
// CraftBukkit end
}
public static MinecraftServer getServer() {