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

Deterministic offline username and UUID #46

Closed
mindstorm38 opened this issue Oct 24, 2021 · 1 comment
Closed

Deterministic offline username and UUID #46

mindstorm38 opened this issue Oct 24, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mindstorm38
Copy link
Owner

Currently, a new UUID (v4, random one) is used for offline start if -i option is not used and the username is just a sub string of the UUID. This behavior is often annoying (multiple starts, and you can lose your stuff, on offline-mode servers at least) and rarely useful (if you want multiple bots).

The fix will include two main cases:

  • No username is given (using -u): a UUID from a local computer constant like host name or something like this, the username will be a sub string of the UUID.
  • A username is given: the UUID will be generated from the username, using a hash function.
@mindstorm38
Copy link
Owner Author

Implemented in 2.0.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant