Пример #1
0
 @Override
 public void onDisable() {
   for (Hook hook : hooks) {
     if (hook.isProvided()) {
       hook.unload();
     }
   }
 }
Пример #2
0
 @Override
 public void onEnable() {
   registerHooks();
   for (Hook hook : hooks) {
     if (hook.isProvided()) {
       hook.load();
     }
   }
 }