pocketmine\utils\ServerKiller::run PHP Method

run() public method

public run ( )
    public function run()
    {
        $start = time();
        $this->synchronized(function () {
            $this->wait($this->time * 1000000);
        });
        if (time() - $start >= $this->time) {
            echo "\nTook too long to stop, server was killed forcefully!\n";
            @\pocketmine\kill(getmypid());
        }
    }