SteamWar/SpigotCore
Archiviert
13
0

Simplify SWCommand Constructor

Dieser Commit ist enthalten in:
yoyosource 2021-03-12 17:38:26 +01:00
Ursprung 3d5ae19863
Commit 67b7f431e0

Datei anzeigen

@ -37,6 +37,10 @@ public abstract class SWCommand {
private final Set<InternalTabComplete> tabCompleteSet = new HashSet<>();
private Consumer<CommandSender> helpMessage = sender -> {};
protected SWCommand(String command) {
this(command, new String[0]);
}
protected SWCommand(String command, String... aliases) {
SWCommandUtils.commandMap.register("steamwar", new Command(command, "", "/" + command, Arrays.asList(aliases)) {
@Override