Exemplo n.º 1
0
 /**
  * Disabling the plugin
  * @return type
  */
 public function onDisable()
 {
     // Save all the users
     User::save();
     self::$logger->info("Disabled !");
 }
Exemplo n.º 2
0
 /**
  * Save the users on run
  * @param $currentTick
  */
 public function onRun($currentTick)
 {
     Config::getLogger()->info("Saving of all users ...");
     User::save();
 }