summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-10-29 02:12:07 -0400
committerEvilSeph <evilseph@gmail.com>2012-10-29 02:12:07 -0400
commit9ea682a4a10e496c4708399e2a21cbc6413d8e2f (patch)
tree93c770cf6f7836cb033f94d4680df8f67527e92f
parent1f37a492b42ce0e70183b20bd6c57984903c98b5 (diff)
downloadbukkit-9ea682a4a10e496c4708399e2a21cbc6413d8e2f.tar
bukkit-9ea682a4a10e496c4708399e2a21cbc6413d8e2f.tar.gz
bukkit-9ea682a4a10e496c4708399e2a21cbc6413d8e2f.tar.lz
bukkit-9ea682a4a10e496c4708399e2a21cbc6413d8e2f.tar.xz
bukkit-9ea682a4a10e496c4708399e2a21cbc6413d8e2f.zip
Remove invalid tab completions from DefaultGameModeCommand as player names are not an accepted parameter.
-rw-r--r--src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java b/src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java
index 1611d413..9557b097 100644
--- a/src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java
+++ b/src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java
@@ -68,9 +68,8 @@ public class DefaultGameModeCommand extends VanillaCommand {
if (args.length == 1) {
return StringUtil.copyPartialMatches(args[0], GAMEMODE_NAMES, new ArrayList<String>(GAMEMODE_NAMES.size()));
- } else if (args.length == 2) {
- return super.tabComplete(sender, alias, args);
}
+
return ImmutableList.of();
}
}