示例#1
0
 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();
 }
示例#2
0
 public function onDisable()
 {
     if ($this->dataProvider !== null) {
         $this->dataProvider->close();
     }
 }
示例#3
0
文件: MyPlot.php 项目: Timm03/MyPlot
 public function onDisable()
 {
     $this->dataProvider->close();
     $this->getLogger()->info(TextFormat::GREEN . "Saving plots");
     $this->getLogger()->info(TextFormat::BLUE . "Disabled the plot framework!");
 }