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 Vault-Accountcheck for renamed player #106

Merged
merged 4 commits into from Jan 27, 2018

Conversation

DrPanic
Copy link
Contributor

@DrPanic DrPanic commented Jan 25, 2018

Shops of renamed players may not work anymore. The check whether an economy account exists must be made on the new account and not on the old user name that no longer exists.

@Phoenix616
Copy link
Member

Getting an OfflinePlayer object at this point will lead to a massive performance impact which is the reason why it was removed in the first place. A better solution would be to use NameManager#getLastAccountFromShortName instead of getAccountFromShortName so that it uses the last known username there.

@DrPanic
Copy link
Contributor Author

DrPanic commented Jan 25, 2018

Okay, I understand. I have changed it to getLastAccountFromShortName and added error messages output.

@Phoenix616 Phoenix616 merged commit 2181519 into ChestShop-authors:master Jan 27, 2018
@Phoenix616
Copy link
Member

Thanks for noticing and providing a fix for this!

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

Successfully merging this pull request may close these issues.

None yet

2 participants