PlayerLoginEvent fires twice
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides no source file or test; begin by reproducing the duplicate PlayerLoginEvent with the supplied listener on the stated Paper version. Trace the login event dispatch path and verify that a connection logs "Testing" only once, including the whitelist/logging reproduction mentioned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100