public void unHookPlugin (Plugin plugin) {
String className = plugin.getClass().getName();
if (className.equals("com.iConomy.iConomy")) {
log(Level.INFO, "Un-hooked iConomy", true);
this.balance = new DummyBalance(this);
}
if (className.equals("com.iCo6.iConomy")) {
log(Level.INFO, "Un-hooked iConomy", true);
this.balance = new DummyBalance(this);
}
if (className.equals("com.iCo8.iConomy")) {
log(Level.INFO, "Un-hooked iConomy", true);
this.balance = new DummyBalance(this);
}
if (this.permission != null) {
if (!this.permission.isEnabled()) {
log(Level.INFO, "Un-hooked Permissions", true);
this.permission = null;
}
}
if (className.equals("cosine.boseconomy.BOSEconomy")) {
log(Level.INFO, "Un-hooked BOSEconomy", true);
this.balance = new DummyBalance(this);
}
// Towny
if (className.equals("com.palmergames.bukkit.towny.Towny")) {
log(Level.INFO, "Un-hooked Towny", true);