Example #1
0
 public function onLoad()
 {
     self::$NAME = $this->getName();
     if (!is_dir($this->getDataFolder())) {
         mkdir($this->getDataFolder(), 0777, true);
     }
 }
Example #2
0
 public function onLoad()
 {
     if (!in_array($n = $this->getServer()->getName(), ["PocketMine-MP", "PocketMine-Soft"])) {
         $this->getLogger()->warning("HereAuth uses a sophisticated threading mechanism. It has not been tested on {$n}. It may have errors or even make other plugins misbehave if used on {$n}.");
     }
     self::$NAME = $this->getName();
     if (!is_dir($this->getDataFolder())) {
         mkdir($this->getDataFolder(), 0777, true);
     }
 }