{SAS}DocStone wrote:
A simple banned user array like you have for Admin settings would be fine to start with, so that I could manually enter the desired usernames. Ideally this file would be checked real time so that a server restart wouldn't be needed.
Sounds good to me, I don't mind that it's only accessible by the server admin. Using a similar array as for admin names wouldn't work very well given how that thing needs to be declared before running the script, but just a text file listing the names can be read easily and refreshed on the fly, no problem with that.
Quote:
The only problem I see is if a player is desperate to troll, and keeps adding a numerical addition to the name, although perhaps a wildcard could be used, or the ability to ban the actual user as well as the usernames. IP bans can be problematic with the shared IPs that a lot of ISPs use.
The wildcard will indeed stop the troll only to the point he realizes it doesn't work, and then he will just use another name, so in the end it won't stop him longer than for one attempted reconnect. The wildcards would be good for ruling out insulting names, sure.
Users can only be detected by usernames, SteamID's and IP addresses basically. A matching SteamID could be the reason for the ban, but the game can be run outside Steam too and the SteamID won't then be used so -> the troll is in again.