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

Prevent /editsign on waxed signs #5492

Merged
merged 4 commits into from
Aug 28, 2023
Merged

Prevent /editsign on waxed signs #5492

merged 4 commits into from
Aug 28, 2023

Conversation

SrBedrock
Copy link
Contributor

@SrBedrock SrBedrock commented Aug 25, 2023

Information
This PR closes #5473

Details
Proposed feature:

  • Do not allow editing signs if it has been waxed with bypass permission essentials.editsign.waxed.exempt
  • Calling the SignEditEvent when copying a sign with /editsign copy

Environments tested:

OS: Windows

Java version: 17

Most recent Paper version (1.20.1, git-Purpur-2044)
Demonstration:

@SrBedrock SrBedrock changed the title Edit sign Do not change sign if it is waxed Aug 25, 2023
@SrBedrock SrBedrock marked this pull request as ready for review August 25, 2023 15:05
@SrBedrock
Copy link
Contributor Author

I need to add a message warning that the command failed because the sign is waxed, does anyone have any idea what the message should look like?

@SrBedrock SrBedrock changed the title Do not change sign if it is waxed Prevent /editsign on waxed signs Aug 26, 2023
@JRoy JRoy merged commit 72ba87c into EssentialsX:2.x Aug 28, 2023
1 check passed
@SrBedrock SrBedrock deleted the edit-sign branch August 28, 2023 21:21
JRoy pushed a commit that referenced this pull request Sep 22, 2023
JRoy pushed a commit that referenced this pull request Sep 22, 2023
@mdcfe mdcfe added this to the 2.20.2 milestone Sep 23, 2023
HarvelsX pushed a commit to HarvelsX/Essentials that referenced this pull request Jun 2, 2024
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.

Do not change sign if it is waxed
4 participants