Connection message for Minecraft when the voice/mobile connection is opened

master
Alex 2022-03-13 21:48:38 +01:00
parent 7e9a76bc1c
commit 2b97eaca48
1 changed files with 4 additions and 0 deletions

View File

@ -39,9 +39,13 @@ func RunHub() {
if token == clientDb.VoiceSessionToken { // voice if token == clientDb.VoiceSessionToken { // voice
client.VoiceConn = connection client.VoiceConn = connection
logger.Web.Println("voice") logger.Web.Println("voice")
serverCommunication.SendMessageToMinecraftServer(kraProtocol.DestBackend, 0, kraProtocol.StatusGet, 10, clientDb.Uuid, 13337, "")
} else if token == clientDb.MobileSessionToken { // mobile } else if token == clientDb.MobileSessionToken { // mobile
client.MobileConn = connection client.MobileConn = connection
logger.Web.Println("mobile") logger.Web.Println("mobile")
serverCommunication.SendMessageToMinecraftServer(kraProtocol.DestBackend, 0, kraProtocol.StatusGet, 10, clientDb.Uuid, 37657, "")
} else { // token invald } else { // token invald
logger.Web.Println("invalid") logger.Web.Println("invalid")
} }