Пример #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");
 }