diff --git a/CommonCore b/CommonCore index b183ce0..b132869 160000 --- a/CommonCore +++ b/CommonCore @@ -1 +1 @@ -Subproject commit b183ce0b2dadc9143d8eb9c5f1aeba2a8ea78d32 +Subproject commit b1328695a1a30c062d066ff564a9112fde668b3e diff --git a/src/de/steamwar/command/SWCommand.java b/src/de/steamwar/command/SWCommand.java index 7b4067b..f8c3647 100644 --- a/src/de/steamwar/command/SWCommand.java +++ b/src/de/steamwar/command/SWCommand.java @@ -58,14 +58,17 @@ public class SWCommand extends AbstractSWCommand { protected SWCommand(String command, String permission, String... aliases) { super(CommandSender.class, command, aliases); this.permission = permission; + create = true; createAndSafeCommand(command, aliases); unregister(); register(); } + private boolean create = false; + @Override protected void createAndSafeCommand(String command, String[] aliases) { - if (permission == null) return; + if (!create) return; this.command = new TabCompletableCommand(command, permission, aliases) { @Override public void execute(CommandSender commandSender, String[] strings) {