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

Fix Player Name Changes #362

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Fix Player Name Changes #362

wants to merge 3 commits into from

Conversation

nicegamer7
Copy link
Member

This PR fixes #329 by changing usernames to UUIDs where applicable.

I've included migration code starting at Line 140 in the FlatFileProfileDataSource class, this also removes the need for the PlayerPreLoginEvent which was watching for username changes.

@nicegamer7 nicegamer7 closed this May 13, 2020
@nicegamer7 nicegamer7 reopened this May 14, 2020
@nicegamer7
Copy link
Member Author

I closed this earlier because I thought I had broken the mvinv migrate command, however, it seems it isn't working even before these changes.

@nicegamer7
Copy link
Member Author

Here's a build of this PR, please report any issues :)

Multiverse-Inventories-4.0.0-SNAPSHOT.zip

@nicegamer7
Copy link
Member Author

I decided to test the mvinv migrate command again, and it turns out this PR DOES break it. Although, I think there are some cases that caused it not to work, even before the changes in this PR.

@nicegamer7 nicegamer7 marked this pull request as draft June 25, 2020 18:05
@nicegamer7 nicegamer7 changed the base branch from master to main November 25, 2020 18:31
@benwoo1110 benwoo1110 added the PR: Bugfix Pull requests to fix bugs found in MV. label Feb 9, 2021
@benwoo1110
Copy link
Member

Is this still needed? Actually, I see that you changed to use OfflinePlayer in some areas?

@nicegamer7
Copy link
Member Author

I suppose it's not needed, but I think this is the better way of doing things. No need to migrate on username change with this. Needs to be rebased though.

@untuned
Copy link

untuned commented May 9, 2023

Is this pull request still being worked on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bugfix Pull requests to fix bugs found in MV.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Name change profile migration not working correctly
3 participants