cuwo
cuwo copied to clipboard
Problem with players having same names
Players can have the same name then someone that already is on the server.
It may not be useful for all people but some will use it.
It's only useful for console I think where you can't see players heads on the map... But commands can't be executed in the console as far as I know.
Eventually they can be typed in console I imagine.
Yes but there is another problem: some players can have the same name and when you would show or search by id it's not easy to remember who has which id at least when there are many players online.
That can be fixed by kicking a player if someone is already using that name. That could easily be a simple script. With the way Cw is designed there's a lot of limitations.
That would be ugly for players to get kicked only because they have the same name like someone else on the server. Not really nice...
So better solution: change the name of the player when joining instead of throwing out of the game. This could be done by enumeration so when playerx joins the server and there already is a playerx, the playerx joining will get a namechange to playerx2.
Okay implemented in my fork (also with using SQLite) with /register password (gives you an ID and stores the password in the database as blob sha224 hashed and salted). Then you can login with /login ID password The ID is needed because it allows you to have the same name as someone else.