PaperMC / PaperMC/Waterfall

getFrom() always null in ServerSwitchEvent

Open
#686 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
752
Forks
307
Avg merge
15h 48m
Merged PRs (30d)
7

Description

Waterfall version: Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:93773f9:448

Ambient: Docker container running debian (not sure about the version though) and java 16, ryzen 5 3600X, 64 GB ddr4 2300MHz

Every time the ServerSwitchEvent is triggered the method getFrom() returns null. Is there a small delay I have to wait before calling the method or is that a bug?

I'm using the 1.17-R0.1-SNAPSHOT waterfall-api release in my build.gradle.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing ServerSwitchEvent and the getFrom() implementation in the Waterfall API, then inspect how the event is created and dispatched. Reproduce the behavior with the 1.17-R0.1-SNAPSHOT dependency and determine whether getFrom() should identify the previous server; done means the intended behavior is established and covered by an appropriate test or documented as expected.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.