mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Create new Responder object that will repond to the session's new name
This commit is contained in:
parent
eb8ccc43d7
commit
d49a597671
1 changed files with 3 additions and 0 deletions
|
|
@ -420,6 +420,9 @@ public class WebSocketBot : ChatBot
|
|||
_authenticatedSessions.Add(newId);
|
||||
}
|
||||
|
||||
// Update the responder to the new session id
|
||||
responder = new WsCommandResponder(this, newId, cmd.Command, cmd.RequestId);
|
||||
|
||||
responder.SendSuccessResponse(
|
||||
responder.Quote("The session ID was successfully changed to: '" + newId + "'"), true);
|
||||
LogToConsole(string.Format(Translations.bot_WebSocketBot_session_id_changed, sessionId, newId));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue