Fix for Register inside Essentials

This commit is contained in:
snowleo 2011-06-26 01:43:59 +02:00
parent b63ae9b771
commit 28db891aa5

View File

@ -68,14 +68,6 @@ public class Methods {
if(method.getDescription().getName().equals(name)) plugin = method; else plugin = manager.getPlugin(name);
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);
if(current == null) continue;
@ -99,9 +91,7 @@ public class Methods {
break;
}
if(this.preferred.isEmpty()) this.Method = attached;
if(count == 0) {
if(count != 0) {
if(this.preferred.equalsIgnoreCase(attached.getName()))
this.Method = attached;
} else {