Skip to content

Fix /nick off breaking with changecolor permissions - #4876

Merged
JRoy merged 2 commits into
EssentialsX:2.xfrom
Deltric:fix-nickname-off-4822
Mar 31, 2022
Merged

Fix /nick off breaking with changecolor permissions#4876
JRoy merged 2 commits into
EssentialsX:2.xfrom
Deltric:fix-nickname-off-4822

Conversation

@Deltric

Copy link
Copy Markdown
Contributor

Information

This PR fixes#4822 .

Details

Proposed fix:

The bug stems from a race condition between formatNickname method and the updatePlayer method.
My fix adds an additional check to the only color changes if statement to make sure its not the off argument.

Environments tested:

OS: Windows 11

Java version: 17.0.1

  • Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Demonstration:

Before Fix: (Tested with EssentialsX 2.19.4 and 2.20.0-dev+4-4bd1b3c)
image

After Fix: (Tested by using the compiled version with this commit)
image

@JRoyJRoy added bug: confirmed Confirmed bugs in EssentialsX. module: main Issues or PRs for the main Essentials module labels Mar 31, 2022
@JRoyJRoy added this to the 2.20.0 milestone Mar 31, 2022
@JRoy

JRoy commented Mar 31, 2022

Copy link
Copy Markdown
Member

Not a race condition but thanks for the catch none the less!

@JRoyJRoy changed the title Fix nickname off for color only nicknamesFix /nick off breaking for changecolor permissionsMar 31, 2022
@JRoyJRoy changed the title Fix /nick off breaking for changecolor permissionsFix /nick off breaking with changecolor permissionsMar 31, 2022
@JRoy
JRoy merged commit d891268 into EssentialsX:2.xMar 31, 2022
PureGero pushed a commit to CritterzNFT/Essentials that referenced this pull request Apr 20, 2022
@mdcfemdcfe modified the milestones: 2.20.0, 2.19.5Jul 7, 2022
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
rewsdjad1 pushed a commit to rewsdjad1/EssentialsXPlus that referenced this pull request Aug 13, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: confirmedConfirmed bugs in EssentialsX.module: mainIssues or PRs for the main Essentials module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nickname Off Bug

3 participants

@Deltric@JRoy@mdcfe