Add disconnect identity check debug logs & get CorePlayer directly#66
Conversation
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughImprovements
Development
WalkthroughBoth Bungee and Velocity PlayerListener classes now receive a logger via constructor injection. Disconnect event handling adds explicit null-checks and debug logging before processing, replacing the previous unconditional player-creation path with a safer look-up-and-validate pattern. ChangesPlayer Disconnect Logging
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Get the
CorePlayerdirectly from thePlayerManagerinstead of usinggetOrPutPlayerin theDisconnectEvent. This prevents pointlessly instantiating a newCorePlayerobject.Debug log when a
DisconnectEventis ignored due to a null or duplicateCorePlayer.