mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
Fix for Register inside Essentials
This commit is contained in:
@@ -68,14 +68,6 @@ public class Methods {
|
|||||||
if(method.getDescription().getName().equals(name)) plugin = method; else plugin = manager.getPlugin(name);
|
if(method.getDescription().getName().equals(name)) plugin = method; else plugin = manager.getPlugin(name);
|
||||||
if(plugin == null) continue;
|
if(plugin == null) continue;
|
||||||
|
|
||||||
if(!plugin.isEnabled()) {
|
|
||||||
this.self = true;
|
|
||||||
Logger.getLogger("Minecraft").log(Level.SEVERE, name + " Plugin was found, but not enabled before Essentials. Read the Essentials thread for help.");
|
|
||||||
//manager.enablePlugin(plugin);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(plugin == null) continue;
|
|
||||||
|
|
||||||
Method current = this.createMethod(plugin);
|
Method current = this.createMethod(plugin);
|
||||||
if(current == null) continue;
|
if(current == null) continue;
|
||||||
|
|
||||||
@@ -99,9 +91,7 @@ public class Methods {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.preferred.isEmpty()) this.Method = attached;
|
if(count != 0) {
|
||||||
|
|
||||||
if(count == 0) {
|
|
||||||
if(this.preferred.equalsIgnoreCase(attached.getName()))
|
if(this.preferred.equalsIgnoreCase(attached.getName()))
|
||||||
this.Method = attached;
|
this.Method = attached;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user