mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
Fix for Register inside Essentials
This commit is contained in:
parent
b63ae9b771
commit
28db891aa5
1 changed files with 1 additions and 11 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue