geforkt von Mirrors/Paper
Remove invalid tab completions from DefaultGameModeCommand as player names are not an accepted parameter.
By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
b75d402b61
Commit
65c2b7e7db
@ -68,9 +68,8 @@ public class DefaultGameModeCommand extends VanillaCommand {
|
|||||||
|
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
return StringUtil.copyPartialMatches(args[0], GAMEMODE_NAMES, new ArrayList<String>(GAMEMODE_NAMES.size()));
|
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();
|
return ImmutableList.of();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren