ChestShop-3/com/Acrobot/ChestShop/Listeners/pluginDisable.java

22 lines
650 B
Java
Raw Normal View History

package com.Acrobot.ChestShop.Listeners;
import com.Acrobot.ChestShop.Economy;
import org.bukkit.event.server.PluginDisableEvent;
import org.bukkit.event.server.ServerListener;
/**
* @author Acrobot
*/
2011-07-02 20:34:14 +02:00
public class pluginDisable extends ServerListener {
public void onPluginDisable(PluginDisableEvent event) {
if (Economy.economy != null && pluginEnable.methods.hasMethod()) {
boolean check = pluginEnable.methods.checkDisabled(event.getPlugin());
2011-07-02 20:34:14 +02:00
if (check) {
Economy.economy = null;
System.out.println("[ChestShop] Economy plugin disabled!");
}
}
}
}