Skip to content

PlayerLoginEvent fires twice #8676

@TheMysterys

Description

@TheMysterys

Expected behavior

When a player connects, the event should only fire once

Observed/Actual behavior

The event fires twice

Steps/models to reproduce

Add the below event listener to your plugin (This event listener can be replaced by turning on the whitelist and looking at the "Disconnecting" logs. The addition of code just makes it a bit easier to see)

@EventHandler
public void playerLoginEvent (PlayerLoginEvent event) {
     System.out.println("Testing");
}

Join on an account and "Testing" will be logged twice

Plugin and Datapack List

[22:58:48 INFO]: Plugins (3): Campfire, LuckPerms, spark

Paper version

[22:58:00 INFO]: This server is running Paper version git-Paper-333 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT) (Git: eec64a4)
You are running the latest version

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.

    Type

    Projects

    Status

    ✅ Accepted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions