Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3541

AsyncPlayerPreLoginEvent in offline mode

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor 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?

            Unassigned Unassigned
            blablubbabc blablubbabc
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: