The crash was introduced in https://github.com/GTNewHorizons/ServerUtilities/pull/82 which I didn't notice as it only happens when creating a new world/a new player joining a server. The reason this happens is because PlayerEvent.NameFormat is sent prior to PlayerEvent.PlayerLoggedInEvent which means the player won't necessarily be registered yet.
Switching getPlayer back to the nullable version solves it.
Closes https://github.com/GTNewHorizons/ServerUtilities/issues/86
The crash was introduced in https://github.com/GTNewHorizons/ServerUtilities/pull/82 which I didn't notice as it only happens when creating a new world/a new player joining a server. The reason this happens is because
PlayerEvent.NameFormat
is sent prior toPlayerEvent.PlayerLoggedInEvent
which means the player won't necessarily be registered yet. Switching getPlayer back to the nullable version solves it.