Simplify SWCommand Constructor
Dieser Commit ist enthalten in:
Ursprung
3d5ae19863
Commit
67b7f431e0
@ -37,6 +37,10 @@ public abstract class SWCommand {
|
|||||||
private final Set<InternalTabComplete> tabCompleteSet = new HashSet<>();
|
private final Set<InternalTabComplete> tabCompleteSet = new HashSet<>();
|
||||||
private Consumer<CommandSender> helpMessage = sender -> {};
|
private Consumer<CommandSender> helpMessage = sender -> {};
|
||||||
|
|
||||||
|
protected SWCommand(String command) {
|
||||||
|
this(command, new String[0]);
|
||||||
|
}
|
||||||
|
|
||||||
protected SWCommand(String command, String... aliases) {
|
protected SWCommand(String command, String... aliases) {
|
||||||
SWCommandUtils.commandMap.register("steamwar", new Command(command, "", "/" + command, Arrays.asList(aliases)) {
|
SWCommandUtils.commandMap.register("steamwar", new Command(command, "", "/" + command, Arrays.asList(aliases)) {
|
||||||
@Override
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren