public static void UpdateServerAvatar(byte[] data) { server_avatar = Scale(data); if (UserPool.AUsers != null) { UserPool.AUsers.ForEachWhere(x => x.SendPacket(TCPOutbound.BotAvatar(x, server_avatar)), x => x.LoggedIn); } }
internal static byte[] Server(AresClient client) { if (server_avatar == null) { return(TCPOutbound.BotAvatarCleared(client)); } else { return(TCPOutbound.BotAvatar(client, server_avatar)); } }