Update PluginUtils.java

This commit is contained in:
allenlol 2018-10-02 17:49:48 -07:00 committed by GitHub
parent eaf9bac6ec
commit b69db05b61

View File

@ -31,7 +31,7 @@ public class PluginUtils {
PluginUtils() { PluginUtils() {
} }
private File getPluginFile(Plugin plugin) { public static File getPluginFile(Plugin plugin) {
try { try {
Method method = plugin.getClass().getDeclaredMethod("getFile"); Method method = plugin.getClass().getDeclaredMethod("getFile");
method.setAccessible(true); method.setAccessible(true);