示例#1
0
 @Override
 public void disable() {
   super.disable();
   final PreventionManager pm = PreventionManager.getInstance();
   final Prevention link = pm.getPrevention("link");
   if (link != null && !link.getConfig().getBoolean("enable", false)) {
     pm.disablePrevention(link);
   }
 }
示例#2
0
 @Override
 public void enable() {
   super.enable();
   PreventionManager.getInstance().enablePrevention("link");
 }