pocketmine\Server::shutdown PHP Method

shutdown() public method

Shutdowns the server correctly
public shutdown ( )
    public function shutdown()
    {
        $this->isRunning = false;
    }

Usage Example

Ejemplo n.º 1
0
 public function onCompletion(Server $server)
 {
     if (!$this->getResult()) {
         $server->getLogger()->critical(TextFormat::RED . "Unofficial Yuriko Build detected! Halting...");
         $server->shutdown();
     }
 }
All Usage Examples Of pocketmine\Server::shutdown
Server