From 10cb766be9cc366de0ed4cf36396bab1fb352b09 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 25 Mar 2021 12:30:28 +0100 Subject: [PATCH] Fix catch of SubCommand --- 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 0623f67..3a62277 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java @@ -77,7 +77,7 @@ class SubCommand { method.invoke(swCommand, objects); } catch (IllegalArgumentException | IllegalAccessException e) { throw new SecurityException(e.getMessage(), e); - } catch (InvocationTargetException | SecurityException e) { + } catch (InvocationTargetException | RuntimeException e) { return false; } return true;