mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Remove invalid tab completions from DefaultGameModeCommand as player names are not an accepted parameter.
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user