/ban_account <character_name>
This command blocks the account associated with the specified character name, whether that character is online or offline. It also disconnects all characters currently online from that account.
<Ban Account> You cannot ban yourself.
In-Game Message:
<Ban Account> character_name's account (ID: x) has been blocked.
Example 1:
/ban_account uyvawd
![[C++] 🛡️ New BAN Commands: /ban_account and /ban_ip (with instant kick) - Mesaj 1 - Imagine 1 [C++] 🛡️ New BAN Commands: /ban_account and /ban_ip (with instant kick) - Mesaj 1 - Imagine 1](https://i.gyazo.com/0d3f3235b4293f73ffbc4e6364bd6a72.gif)
Example 2:
We target the same name as above, but that character is offline now, and the user went online on another character from the same account.
![[C++] 🛡️ New BAN Commands: /ban_account and /ban_ip (with instant kick) - Mesaj 1 - Imagine 2 [C++] 🛡️ New BAN Commands: /ban_account and /ban_ip (with instant kick) - Mesaj 1 - Imagine 2](https://i.gyazo.com/910b739e07eb9a288f640b95f7911045.gif)
[b]/ban_ip <character_name>[/b]
This command blocks all accounts that have used the same IP address as the specified character. It also disconnects any currently online characters from those accounts.
You cannot ban yourself, even if one of your alternate characters shares the same IP, but the rest of the accounts will be blocked and kicked.
In-Game Messages:
<BAN IP> All accounts with IP xx.xx.xx.xx were banned.
<BAN IP> Account ID 10001 has been blocked.
<BAN IP> Account ID 10002 has been blocked.
<BAN IP> You attempted to ban yourself. Action was prevented. <-- Only if: You banned your own name OR You or one of your alternate characters share the banned ip address.
Example:
/ban_ip uyvawd
· Identify the IP of the character uyvawd.
· Ban all accounts that have logged in using that IP.
· Disconnect all online characters from those accounts, except your own if you share the IP.
![[C++] 🛡️ New BAN Commands: /ban_account and /ban_ip (with instant kick) - Mesaj 1 - Imagine 3 [C++] 🛡️ New BAN Commands: /ban_account and /ban_ip (with instant kick) - Mesaj 1 - Imagine 3](https://i.gyazo.com/3b3eb9fe2823e96480cf9cf32508398f.gif)
In cmd.cpp
In cmd_gm.cpp
Characters do not need to be online for /ban_account or /ban_ip to work.
DESC_MANAGER::DestroyDesc(desc) is used to disconnect online characters.
· Which GM used /ban_account or /ban_ip
· Which accounts were banned
· When it happened
· (Optional) Reason for the ban — useful for internal moderation audits