From 9539ef92d00c3d92444d7a5f2995c4a17d7ddb8b Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 8 Feb 2017 20:28:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=A7=81=E6=9C=89?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E8=B0=83=E7=94=A8=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/commands/info/CommandInfo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/pw/yumc/YumCore/commands/info/CommandInfo.java b/src/main/java/pw/yumc/YumCore/commands/info/CommandInfo.java index 43df12c..65b0d7a 100644 --- a/src/main/java/pw/yumc/YumCore/commands/info/CommandInfo.java +++ b/src/main/java/pw/yumc/YumCore/commands/info/CommandInfo.java @@ -103,6 +103,7 @@ public class CommandInfo { public static CommandInfo parse(Method method, Object origin) { Cmd command = method.getAnnotation(Cmd.class); if (command != null) { + method.setAccessible(true); Help help = method.getAnnotation(Help.class); Async async = method.getAnnotation(Async.class); Sort sort = method.getAnnotation(Sort.class);