private void showAccountBannedPrompt(PromptLoaderCMD promptLoader, SessionErrorEvents.AccountBannedEvent evt) { showingError = true; CPDataEntityCollection cPDataEntityCollection = Service.Get <CPDataEntityCollection>(); if (cPDataEntityCollection.TryGetComponent(cPDataEntityCollection.LocalPlayerHandle, out DisplayNameData component)) { promptLoader.PromptData.SetText(DPrompt.PROMPT_TEXT_TITLE, component.DisplayName, isTranslated: true); } else { promptLoader.PromptData.SetText(DPrompt.PROMPT_TEXT_TITLE, "GlobalUI.ErrorMessages.AccountBanned.Title"); } SessionErrorEvents.AccountBannedPromptSetup(promptLoader.PromptData, evt.Category, evt.ExpirationDate); Service.Get <PromptManager>().ShowPrompt(promptLoader.PromptData, clearShowingError, promptLoader.Prefab); gameStateController.ExitAfterBan(); }