time = $time; } 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()); } } public function getThreadName(){ return "Server Killer"; } }