diff options
author | Score_Under <seejay.11@gmail.com> | 2012-10-09 19:44:04 +0100 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-10-15 03:18:59 -0500 |
commit | 3ce954bb8604c2bbef786b897c93db245dd67424 (patch) | |
tree | 6d0ca053c5130990bd04159768af2cb8027d25a8 /src/main/java/net | |
parent | 05e889f3468b07b2897d64ee1df3e26e763408b1 (diff) | |
download | craftbukkit-3ce954bb8604c2bbef786b897c93db245dd67424.tar craftbukkit-3ce954bb8604c2bbef786b897c93db245dd67424.tar.gz craftbukkit-3ce954bb8604c2bbef786b897c93db245dd67424.tar.lz craftbukkit-3ce954bb8604c2bbef786b897c93db245dd67424.tar.xz craftbukkit-3ce954bb8604c2bbef786b897c93db245dd67424.zip |
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.
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/MinecraftServer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 3fb1215c..9b00bb7f 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -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() { |