Repository navigation
Conversation
…we do not maintain them for features
CitralFlo
approved these changes
Nov 24, 2026
CitralFlo
requested review from
ChudziudgiToJa,
Jakubk15,
P1otrulla,
Pawelusze,
Qbiterv,
igoyek,
imDMK,
mydelkonivea and
noyzys
November 24, 2026 00:52
P1otrulla
approved these changes
Nov 24, 2026
P1otrulla
left a comment
Member
There was a problem hiding this comment.
Thank you very much for the PR. I’ve added a few tweaks, as I’m currently in the process of reworking teleports and the events associated with them. We’ll aim to include this in the 2.2 release; if we don’t manage that, the breaking changes will be pushed to 2.3 - though, of course, only within the API module.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #1480.
AI assistance disclosure: This PR was implemented with OpenAI Codex based on my requirements and API design decisions.
Teleport interceptors can now replace spawn and accepted TPA/TPAHere teleports before the native delay starts:
PreSpawnTeleportEventfor spawn commands (including delay bypass and teleporting another player) andSpawnService.teleportToSpawn, with an immutable player and mutable destination.TeleportRequestAcceptEventfor individual and bulk TPA acceptance and TPAHere acceptance, with immutable requester, recipient and request type, the actual teleporting player, and a mutable destination.event.removeRequest()to remove the corresponding request, including when cancelling the event. This keeps internal request services out of the public API.Existing permission/height checks, delays and normal request processing are retained. Bulk acceptance continues processing other requests when one event is cancelled, and does not send a success summary if every acceptance was cancelled.
Type of change
How Has This Been Tested?
Using Temurin JDK 21:
./gradlew :eternalcore-core:test :eternalcore-api:build :eternalcore-api-example:compileJava./gradlew :eternalcore-core:test :eternalcore-plugin:shadowJarAll 52 core tests pass, including 20 new scenarios covering cancellation, destination changes, explicit request removal, bulk acceptance, TPAHere direction, the minimum acceptance height and all supported spawn entry points. The plugin JAR, API sources/Javadoc and API examples build successfully.
Checklist