Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with players having same names #48

Open
Jakky89 opened this issue Jul 21, 2013 · 7 comments
Open

Problem with players having same names #48

Jakky89 opened this issue Jul 21, 2013 · 7 comments

Comments

@Jakky89
Copy link

Jakky89 commented Jul 21, 2013

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

@Favorlock
Copy link
Collaborator

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

@Jakky89
Copy link
Author

Jakky89 commented Jul 21, 2013

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.

@Favorlock
Copy link
Collaborator

Eventually they can be typed in console I imagine.

@Jakky89
Copy link
Author

Jakky89 commented Jul 21, 2013

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.

@Favorlock
Copy link
Collaborator

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.

@Jakky89
Copy link
Author

Jakky89 commented Jul 21, 2013

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
Copy link
Author

Jakky89 commented Jul 22, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants