diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 4176c7a..14522e1 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -63,7 +63,8 @@ public abstract class SWCommand { }); for (Method method : getClass().getDeclaredMethods()) { - if (method.getDeclaredAnnotation(Register.class) == null || !validMethod(method)) continue; + if (method.getDeclaredAnnotation(Register.class) == null) continue; + if (!validMethod(method)) continue; if (method.getReturnType() == Void.TYPE) { commandSet.add(new InternalCommand(this, method)); }