Skip to content

GH-1316 Simple fix of back command not registering teleports#1316

Open
CitralFlo wants to merge 2 commits intomasterfrom
back-command-fix
Open

GH-1316 Simple fix of back command not registering teleports#1316
CitralFlo wants to merge 2 commits intomasterfrom
back-command-fix

Conversation

@CitralFlo
Copy link
Member

No description provided.

@CitralFlo CitralFlo requested a review from a team as a code owner March 3, 2026 10:09
@CitralFlo CitralFlo changed the title Simple fix of back command not registering teleports GH-1316 Simple fix of back command not registering teleports Mar 3, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to fix an issue where plugin-based teleports were not being registered for the /back command. However, the change introduces a logic error in the teleport recording mechanism, inverting the filter for teleport causes. This results in the plugin only recording teleports initiated by other plugins, ignoring standard player-initiated teleports (e.g., portals, vanilla commands). This not only breaks intended functionality but also creates a potential security bypass, allowing players to return to restricted areas they were moved from by staff or automated systems.

Copy link
Member

@Rollczi Rollczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

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.

4 participants