示例#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();
     }
   }
 }