mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-06-29 07:44:43 +02:00
a84c68d49d
- Added support for Deadbolt - By default, left clicking your own sign doesn't do anything - Restricted signs now check if you've got permission ChestShop.group.groupName - Added support for stacking unstackable things - Updated Register - Changed how plugins are loaded.
19 lines
607 B
Java
19 lines
607 B
Java
package com.Acrobot.ChestShop.Listeners;
|
|
|
|
import com.Acrobot.ChestShop.Economy;
|
|
import com.LRFLEW.register.payment.forChestShop.Methods;
|
|
import org.bukkit.event.server.PluginDisableEvent;
|
|
import org.bukkit.event.server.ServerListener;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public class pluginDisable extends ServerListener {
|
|
public void onPluginDisable(PluginDisableEvent event) {
|
|
if (Economy.economy != null && Methods.hasMethod() && Methods.checkDisabled(event.getPlugin())) {
|
|
Economy.economy = null;
|
|
System.out.println("[ChestShop] Economy plugin disabled!");
|
|
}
|
|
}
|
|
}
|