❗ Checklist
📍 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
❗ Checklist
📍 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:
💡 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