public static void UpdateServerAvatar(byte[] data) { server_avatar = Scale(data); if (UserPool.Users != null) { UserPool.Users.ForEach(x => { x.SendPacket(AresTcpPackets.BotAvatar(server_avatar)); }); } }
internal static byte[] Server(UserObject client) { if (server_avatar == null) { return(AresTcpPackets.BotAvatarCleared(client)); } else { return(AresTcpPackets.BotAvatar(client, server_avatar)); } }