/// <summary>
        ///     Called when the <see cref="RevokeAccountBanMessage"/> is received.
        /// </summary>
        internal void RevokeAccountBanMessageReceived(RevokeAccountBanMessage message)
        {
            LogicLong accountId = message.RemoveAccountId();

            if (AccountManager.TryGet(accountId, out Account account))
            {
                if (account.RevokeBan())
                {
                    NetAccountMessageManager.SendResponseMessage(message, new AccountBanRevokedMessage());
                }
            }
        }
        /// <summary>
        ///     Called when the <see cref="CreateAccountBanMessage"/> is received.
        /// </summary>
        internal void CreateAccountBanMessageReceived(CreateAccountBanMessage message)
        {
            LogicLong accountId = message.RemoveAccountId();

            if (AccountManager.TryGet(accountId, out Account account))
            {
                if (!account.IsBanned())
                {
                    if (message.GetEndTime() >= -1)
                    {
                        if (account.CreateBan(message.GetReason(), message.GetEndTime()))
                        {
                            NetAccountMessageManager.SendResponseMessage(message, new AccountBanCreatedMessage());
                        }
                    }
                }
            }
        }