Skip to content

fix(events): handle lowercase UUIDs in events#4829

Open
pedroagrs wants to merge 2 commits intoIntellectualSites:mainfrom
pedroagrs:fix/lowercase-uuid
Open

fix(events): handle lowercase UUIDs in events#4829
pedroagrs wants to merge 2 commits intoIntellectualSites:mainfrom
pedroagrs:fix/lowercase-uuid

Conversation

@pedroagrs
Copy link

Overview

Inconsistency in PlayerSignOpenEvent validation on servers with force-lowercase UUIDs.

Description

Currently, the PlayerSignOpenEvent listener in PlayerEventListener1201 uses the native bukkit method Player#getUniqueId() to verify if a player is added to a plot.

On certain server environments where the uuid.force-lowercase flag is enabled, the UUID string representation might mismatch during comparison. This causes the event to fail validation, preventing authorized players from interacting with or editing signs because their UUIDs are not being matched correctly against the plot's member list.

Submitter Checklist

  • Make sure you are opening from a topic branch (right side) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • I read and followed the contribution guidelines.

This ensures compatibility with servers using the uuid.force-lowercase flag, as the PlotPlayer abstraction handles UUID normalization correctly.
@pedroagrs pedroagrs requested a review from a team as a code owner February 3, 2026 21:23
@github-actions github-actions bot added the Bugfix This PR fixes a bug label Feb 3, 2026
@dordsor21
Copy link
Member

I would wonder if there are more places that this is an issue. Would you mind checking?

@pedroagrs
Copy link
Author

I would wonder if there are more places that this is an issue. Would you mind checking?

Apologies for the delay. I've double-checked other event listeners and pushed. Everything should be consistent now.

@dordsor21 dordsor21 changed the title fix(events): handle lowercase UUIDs in PlayerSignOpenEvent fix(events): handle lowercase UUIDs in events Feb 7, 2026
@dordsor21 dordsor21 requested a review from a team February 7, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix This PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants