public function __construct(RakLibServer $server, UDPServerSocket $socket) { $this->server = $server; $this->socket = $socket; $this->registerPackets(); $this->serverId = mt_rand(0, PHP_INT_MAX); $this->run(); }