+ 修复张艾伦写的碧油鸡
This commit is contained in:
parent
989672b948
commit
732f0bf093
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user