Skip to content

Avoid charging entry fees for cancelled teleports - #3530

Open
voidsipp wants to merge 1 commit into
Multiverse:mainfrom
voidsipp:fix-cancelled-teleport-entry-fees
Open

voidsipp wants to merge 1 commit into
Multiverse:mainfrom
voidsipp:fix-cancelled-teleport-entry-fees

Conversation

@voidsipp

@voidsipp voidsipp commented Nov 3, 2026

Copy link
Copy Markdown

Cancelled teleports still took entry fees, and negative fees could reward a player who never entered the world. Payment now waits until MONITOR and only runs if the event is uncancelled and still targets the validated world. The original payer, price and currency are retained.

Permission and affordability checks keep their configurable priority. Listener registration now follows declared priorities so validation runs before collection even when both end up at MONITOR.

Added regression coverage for cancellation, redirected destinations, rewards, exemptions, console/player payers and all six configurable priorities. The full Gradle build passes all 199 tests on JDK 21 with MockBukkit. Checkstyle completes with warnings in the original and changed files; this has not been tested on a live Paper server.

Fixes #2875

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Entry Fee money collection into MONITOR event

1 participant