mirror of
https://github.com/EssentialsX/Essentials.git
synced 2026-11-05 09:10:17 -05:00
Player#hasPlayedBefore() is unreliable since the switch to configuration-phase events, as player data is persisted during login, so genuine first-joiners were treated as returning players. This broke EssentialsSpawn newbie spawn/kit/announce-format (#6466). Add a firstJoin flag to AsyncUserDataLoadEvent, derived from EssentialsX's own user data, and use it in EssentialsSpawn and EssentialsDiscord instead of hasPlayedBefore(). Fixes #6466