public function onDisable() { $this->dataProvider->close(); $this->getLogger()->info(TextFormat::GREEN . "Saving plots"); $this->getLogger()->info(TextFormat::BLUE . "Disabled the plot framework!"); $this->getLogger()->critical(TextFormat::RED . "Shutting down to protect plots"); $this->getServer()->shutdown(); }
public function onDisable() { if ($this->dataProvider !== null) { $this->dataProvider->close(); } }
public function onDisable() { $this->dataProvider->close(); $this->getLogger()->info(TextFormat::GREEN . "Saving plots"); $this->getLogger()->info(TextFormat::BLUE . "Disabled the plot framework!"); }