Skip to content

Conversation

JRoy
Copy link
Member

@JRoy JRoy commented Oct 10, 2025

Fixes an issue during first join with the player configuration events on Paper. The usermap will refuse to implicitly store new users into the usermap unless it can get a Bukkit player object for it, which is only created during the PlayerJoinEvent. So for new users, we must defer to then. The code that was being run (activity/mute checks) was probably incorrect to be placed inside of configure event anyway.

Also force loads the locale bundle into memory to ensure it's ready for servers with slow i/o.

Fixes #6315

Fixes an issue during first join with the player configuration events on Paper. Also force loads the locale bundle into memory to ensure it's ready for servers with slow i/o.
@JRoy JRoy added this to the 2.22.0 milestone Oct 10, 2025
@JRoy JRoy added type: bugfix PRs that fix bugs in EssentialsX. module: main Issues or PRs for the main Essentials module labels Oct 10, 2025
@JRoy JRoy changed the title Fix issue with first time joins Fix exception during first time joins Oct 10, 2025
@mdcfe mdcfe added this pull request to the merge queue Oct 10, 2025
Merged via the queue into EssentialsX:2.x with commit adf77dc Oct 10, 2025
1 check passed
@mdcfe mdcfe deleted the fix/6315 branch October 10, 2025 15:27
Euphillya added a commit to Euphillya/Essentials-Folia that referenced this pull request Oct 13, 2025
EssentialsX@adf77dc Fix exception during first time joins (EssentialsX#6327)
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: bugfix PRs that fix bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullPointerException when new players join (User is null in EssentialsPlayerListener)

2 participants