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

Calling PlayerLoginEvent causes massive freezes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • Test Server on Windows without extra plugins (only mine).

    • [Server thread/INFO]: This server is running CraftBukkit version 3836-Spigot-3374045-08ec344 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) [Server thread/INFO]: Checking version, please wait... [Thread-14/INFO]: You are running the latest
    • ReallyFakePlayers (my plugin, rewrite sources are private yet)
    • Yes

      I noticed that calling PlayerLoginEvent specifically causes server to freeze for around 5 seconds with no reason or logs (freezes like not responding to commands, etc.), I call it like any other event (Bukkit.getPluginManager().callEvent(new PlayerLoginEvent(fakePlayer, address.getHostName(), address)) . Even though I develop a fakeplayers plugin, I do not think this issue is wholy about fakeplayers. This specific event does it, others don't.

      I wonder how spigot itself calls the event, so I can learn from it, can't find it in the sources.

            Unassigned Unassigned
            Marlester Marlester
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: