cuwo icon indicating copy to clipboard operation
cuwo copied to clipboard

Problem with players having same names

Open Jakky89 opened this issue 11 years ago • 7 comments

Players can have the same name then someone that already is on the server.

Jakky89 avatar Jul 21 '13 21:07 Jakky89

It may not be useful for all people but some will use it.

Favorlock avatar Jul 21 '13 21:07 Favorlock

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.

Jakky89 avatar Jul 21 '13 22:07 Jakky89

Eventually they can be typed in console I imagine.

Favorlock avatar Jul 21 '13 22:07 Favorlock

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.

Jakky89 avatar Jul 21 '13 22:07 Jakky89

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.

Favorlock avatar Jul 21 '13 22:07 Favorlock

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.

Jakky89 avatar Jul 21 '13 22:07 Jakky89

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.

Jakky89 avatar Jul 22 '13 01:07 Jakky89