i did this by having server only command functions (they are compiled out of the client, clients don’t even get a gamemode from me as the server provides it) ex:
in gamemode i have a function called ban that takes in a string for the message and a character ID (when a server detects the right account privileges it grants devs a special ui populated with all connected character ID’s and their name) when i ban a character i enter their ID, the reason and then the server inserts their ban status into the DB, locates the character with the ID and then sends the message and forces a disconnect if they are still connected.
this may not be efficient for a full blown mmo though (im not making an mmo with the kit so i dont have to worry about shifting through hundreds of characters)