diff --git a/serverCommunication/web.go b/serverCommunication/web.go index 537c5a7..b5143d2 100644 --- a/serverCommunication/web.go +++ b/serverCommunication/web.go @@ -27,6 +27,19 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, status in return } + if status == kraProtocol.StatusReply { + // TODO: TODO: handling reply + + if isVoice { + if isCmdIDInList(webClient.VoiceCmdIDs, cmdID) { + webClient.RemoveVoiceCmdID(cmdID) + } else { + webClient.RemoveMobileCmdID(cmdID) + } + } + return + } + // ack if status == kraProtocol.StatusGet { var cmdIDInList bool @@ -62,8 +75,8 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, status in } return } - // no ack + // no ack if dest == kraProtocol.DestProxy || dest == kraProtocol.DestPlayersCurrentServer { // forwarding message to java / minecraft err = SendMessageToMinecraftServer(status, dest, uuid, cmdNumber, args)