private void parseLoginZoneDefinitions() { LoginZoneDefinition[] array = Service.Get <IGameData>().Get <LoginZoneDefinition[]>(); for (int i = 0; i < array.Length; i++) { ScheduledEventDateDefinition scheduledEventDateDefinition = Service.Get <IGameData>().Get <Dictionary <int, ScheduledEventDateDefinition> >()[array[i].ScheduledEventDateKey.Id]; if (contentSchedulerService.IsDuringScheduleEventDates(scheduledEventDateDefinition) && (!hasConditions(array[i]) || anyConditionsMet(array[i].ANYConditions))) { if (array[i].Zone != null) { gameStateController.LoginZone = array[i].Zone.Id; return; } Log.LogErrorFormatted(this, "The Zone for the event {0} is missing", scheduledEventDateDefinition.name); } } gameStateController.LoginZone = ""; }