public static function setEmulated($universeId) { if (!self::exists($universeId)) { throw new Exception('Unknown universe ID: ' . $universeId); } $session = Session::load(); $session->emulatedUniverse = $universeId; $session->save(); self::$emulatedUniverse = $universeId; return true; }