main = $main; $this->server = $main->getServer(); } public function onRun($tick) { foreach($this->server->getPlayers() as $p) { } } }