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

AsyncPlayerPreLoginEvent in offline mode

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: