From 65c2b7e7db703fbc6b1ae557b4aae43a55ad5820 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 29 Oct 2012 02:12:07 -0400 Subject: [PATCH] Remove invalid tab completions from DefaultGameModeCommand as player names are not an accepted parameter. By: EvilSeph --- .../org/bukkit/command/defaults/DefaultGameModeCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java index 1611d413e6..9557b09752 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/DefaultGameModeCommand.java +++ b/paper-api/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(GAMEMODE_NAMES.size())); - } else if (args.length == 2) { - return super.tabComplete(sender, alias, args); } + return ImmutableList.of(); } }