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

Add UUID support to trade and protection signs #4713

Merged
merged 5 commits into from
Feb 13, 2022

Conversation

JRoy
Copy link
Member

@JRoy JRoy commented Dec 25, 2021

Adds UUID support for 1.14+, without asm there is no way to backport this. Defaults to username based system for legacy versions.

@JRoy JRoy added type: enhancement Features and feature requests. module: main Issues or PRs for the main Essentials module labels Dec 25, 2021
@JRoy JRoy added this to the 2.20.0 milestone Dec 25, 2021
@JRoy JRoy force-pushed the feature/sign-uuids branch from 138eb6e to cb1a3eb Compare December 25, 2021 02:10
@pop4959
Copy link
Member

pop4959 commented Dec 25, 2021

Do we still need protection signs? They've been deprecated / basically unused for years afaik.

@JRoy
Copy link
Member Author

JRoy commented Dec 25, 2021

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.

@JRoy JRoy merged commit debf094 into EssentialsX:2.x Feb 13, 2022
@JRoy JRoy deleted the feature/sign-uuids branch February 13, 2022 20:54
@mdcfe mdcfe modified the milestones: 2.20.0, 2.19.3 Feb 23, 2022
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());
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: main Issues or PRs for the main Essentials module type: enhancement Features and feature requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants