-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
Would it be possible to also call the AsyncPlayerPreLoginEvent in case the server runs in offline mode?
The AsyncPlayerPreLoginEvent seems to be handy when asynchronously loading player data prior to the player joining the server: It's not blocking the server's main thread and one doesn't have to worry that player-related data isn't available yet while the player is already playing on the server.
However, relying on the AsyncPlayerPreLoginEvent currently means excluding servers which, for whatever reasons, are running in offline-mode.
Spigot already seems to have a patch for this: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/browse/CraftBukkit-Patches/0043-Fire-PreLogin-Events-in-Offline-Mode.patch
Would it be possible to move this into craftbukkit?