-
-
Notifications
You must be signed in to change notification settings - Fork 414
Respawn Reason #8323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev/feature
Are you sure you want to change the base?
Respawn Reason #8323
Conversation
src/main/java/ch/njol/skript/expressions/ExprRespawnReason.java
Outdated
Show resolved
Hide resolved
Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
|
current build failure due to them changing PlayerRespawnEvent in 1.21.5+ to instead inherit getRespawnReason from AbstractRespawnEvent. AbstractRespawnEvent didn't exist until 1.21.5 |
added reflection for <1.21.5. Tested on 1.21 paper and 1.21.10 paper |
Problem
Currently, there's no way to get respawn reason in the respawn event. The issue with this is the respawn event is also called when the player comes back to the overworld from the end. This also fixes the misleading description of the respawn event docs.

Solution
Adds
ExprRespawnReasonusing event values forPlayerRespawnEventTesting Completed
Tests on 1.21.10 and 1.21 separately


Supporting Information
Completes: none
Related: none
AI assistance: none