Update PluginUtils.java
This commit is contained in:
parent
eaf9bac6ec
commit
b69db05b61
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user