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
2012-10-09 19:44:04 +01:00
committed by Wesley Wolfe
parent 05e889f346
commit 3ce954bb86
2 changed files with 43 additions and 0 deletions

View File

@@ -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() {