-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add UUID support to trade and protection signs #4713
Conversation
138eb6e
to
cb1a3eb
Compare
Do we still need protection signs? They've been deprecated / basically unused for years afaik. |
I had no idea that this was an Essentials feature until this pull request but either way probably not the place to remove it. |
final Sign sign = (Sign) signProvider.getBlock().getState(); | ||
if (ess.getSignDataProvider() == null || ess.getSignDataProvider().getSignData(sign, "owner") == null) { | ||
if (ess.getSignDataProvider() != null) { | ||
ess.getSignDataProvider().setSignData(sign, "owner", user.getUUID().toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check changes the owner to the user without verifying who the user is first.
Adds UUID support for 1.14+, without asm there is no way to backport this. Defaults to username based system for legacy versions.