From bba1c1fbf7b5e9444863d6362e09deddc48339ec Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 12 Mar 2021 17:10:24 +0100 Subject: [PATCH] Fix SWCommand --- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); }