From 698f2c6cbb55581502f133acfbe9816b8a7a0575 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 14 May 2021 16:20:53 +0200 Subject: [PATCH] Fix UnsupportedOperationException --- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index f7cc6e0..d418e02 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -162,7 +162,7 @@ public abstract class SWCommand { } private List methods() { - List methods = Arrays.asList(getClass().getDeclaredMethods()); + List methods = new ArrayList<>(Arrays.asList(getClass().getDeclaredMethods())); methods.addAll(Arrays.asList(SWCommand.class.getDeclaredMethods())); return methods; }