diff --git a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java index 8321196..7838108 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java @@ -94,11 +94,8 @@ class SubCommand { objects[0] = commandSenderFunction.apply(commandSender); method.setAccessible(true); method.invoke(swCommand, objects); - } catch (IllegalAccessException | RuntimeException e) { + } catch (IllegalAccessException | RuntimeException | InvocationTargetException e) { throw new SecurityException(e.getMessage(), e); - } catch (InvocationTargetException e) { - Bukkit.getLogger().log(Level.INFO, e.getMessage(), e); - return false; } return true; }