+ 修复张艾伦写的碧油鸡

This commit is contained in:
坏黑 2018-10-10 17:13:12 +08:00
parent 989672b948
commit 732f0bf093

View File

@ -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) {