diff --git a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java index 0c1adb0..0db26e8 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java @@ -86,7 +86,7 @@ class SubCommand { name = mapper.value(); } else { SWCommand.StaticValue staticValue = parameter.getAnnotation(SWCommand.StaticValue.class); - if (parameter.getType() == String.class) { + if (staticValue != null && parameter.getType() == String.class) { arguments[i - 1] = SWCommandUtils.createMapper(staticValue.value()); guards[i - 1] = getGuardChecker(parameter, localGuardChecker); continue;