20 lines
531 B
Go
20 lines
531 B
Go
package serverCommunication
|
|
|
|
/*
|
|
func getClientByDest(dest int, uuid string) (*structs.WebClient, *structs.MinecraftClient) {
|
|
switch dest {
|
|
case kraProtocol.DestVoice:
|
|
return GetWebClientByUuid(uuid), nil
|
|
case kraProtocol.DestMobile:
|
|
return GetWebClientByUuid(uuid), nil
|
|
case kraProtocol.DestProxy:
|
|
return nil, GetMinecraftClientByName("proxy-1")
|
|
case kraProtocol.DestPlayersCurrentServer:
|
|
return nil, GetMinecraftClientByName("lobby-1")
|
|
default:
|
|
logger.Web.Println("conn for dest is nil")
|
|
return nil, nil
|
|
}
|
|
}
|
|
*/
|