From 23ec2f62f7587113d386c2be30762cf78b0f57c3 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 25 Mar 2021 12:25:48 +0100 Subject: [PATCH] Fix SubCommand.invoke --- SpigotCore_Main/src/de/steamwar/command/SubCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java index 96a21ec..7c6dbb8 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java @@ -78,7 +78,7 @@ class SubCommand { method.invoke(swCommand, objects); } catch (IllegalArgumentException | IllegalAccessException e) { throw new SecurityException(e.getMessage(), e); - } catch (InvocationTargetException e) { + } catch (InvocationTargetException | SecurityException e) { return false; } return true;