-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
๐ฏ Needs testingThis Issue needs to be tested by our team to see if it can be reproduced.This Issue needs to be tested by our team to see if it can be reproduced.๐ Bug ReportA bug that needs to be fixed.A bug that needs to be fixed.
Description
โ Checklist
- I am using the official version of Realistic Survival and did not modify the jar.
- I am using an up-to-date "dev-build" (not "Spigot") version of Realistic Survival.
- I know that issues related to other plugins need to be reported on their bug trackers and not here.
- I searched for similar open issues and could not find an existing bug report on this.
๐ Description
Description:
A NullPointerException occurs in RealisticSurvival v1.2.9 when processing BaubleChangeEvent during player login. The error happens because BaubleChangeEvent.getPlayer() returns null, but the plugin attempts to call getUniqueId() on this null value. This error cascade begins when WorldGuard tries to set a player's game mode during login, triggering RealisticSurvival's event handlers that lack proper null checks.
๐ Reproduction Steps
Steps to Reproduce:
- Install RealisticSurvival v1.2.9 with WorldGuard 7.0.12 and WorldEdit 7.3.9
- Configure WorldGuard regions with game-mode flags
- Have player join server
- WorldGuard triggers game mode change during login
- RealisticSurvival attempts to handle BaubleChangeEvent with null player
๐ก Expected Behavior
Players will not report errors when they join the game
๐ท Screenshots / Videos
No response
๐ Server Log
No response
๐ป Server Software
Purpur
๐ฎ Minecraft Version
1.20.x
โญ Realistic Survival version
RealisticSurvival v1.2.9-RELEASE
๐งญ Other plugins
WorldGuard 7.0.12, WorldEdit 7.3.9
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
๐ฏ Needs testingThis Issue needs to be tested by our team to see if it can be reproduced.This Issue needs to be tested by our team to see if it can be reproduced.๐ Bug ReportA bug that needs to be fixed.A bug that needs to be fixed.