From 732f0bf0932efc2d58c9a071888e2d57852733f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Wed, 10 Oct 2018 17:13:12 +0800 Subject: [PATCH] =?UTF-8?q?+=20=E4=BF=AE=E5=A4=8D=E5=BC=A0=E8=89=BE?= =?UTF-8?q?=E4=BC=A6=E5=86=99=E7=9A=84=E7=A2=A7=E6=B2=B9=E9=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/me/skymc/taboolib/plugin/PluginUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java b/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java index 1c26336..11d8144 100644 --- a/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java +++ b/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java @@ -33,7 +33,7 @@ public class PluginUtils { public static File getPluginFile(Plugin plugin) { try { - Method method = plugin.getClass().getDeclaredMethod("getFile"); + Method method = JavaPlugin.class.getDeclaredMethod("getFile"); method.setAccessible(true); return (File) method.invoke(plugin); } catch (ReflectiveOperationException e) {