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