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