Skip to content

Add UUID support to trade and protection signs - #4713

Merged
JRoy merged 5 commits into
EssentialsX:2.xfrom
JRoy:feature/sign-uuids
Feb 13, 2022
Merged

Add UUID support to trade and protection signs#4713
JRoy merged 5 commits into
EssentialsX:2.xfrom
JRoy:feature/sign-uuids

Conversation

@JRoy

@JRoyJRoy commented Dec 25, 2021

Copy link
Copy Markdown
Member

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

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

Copy link
Copy Markdown
Member

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

@JRoy

JRoy commented Dec 25, 2021

Copy link
Copy Markdown
MemberAuthor

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.xFeb 13, 2022
@JRoy
JRoy deleted the feature/sign-uuids branch February 13, 2022 20:54
@mdcfemdcfe modified the milestones: 2.20.0, 2.19.3Feb 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
Copy Markdown
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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: mainIssues or PRs for the main Essentials moduletype: enhancementFeatures and feature requests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@JRoy@pop4959@mdcfe