Skip to content
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

fix: plot entry trigger on teleport #4593

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Tjorven-Liebe
Copy link

Overview

The teleportevent will not longer trigger the plot-entry method in PlotListener, if currentplot = lastplot.

Description

This will change the way the entry is handled on teleport. If the current plot is the last plot, the teleportevent will not longer trigger the plot-entry method in PlotListener.

@Tjorven-Liebe Tjorven-Liebe requested a review from a team as a code owner February 13, 2025 15:28
@github-actions github-actions bot added Bugfix This PR fixes a bug Feature This PR proposes a new feature labels Feb 13, 2025
@dordsor21 dordsor21 requested a review from a team February 15, 2025 15:16
@RedstoneFuture
Copy link
Member

Yes, good point. Thank you.
Currently, the greeting flag is really executed with every teleport event (e.g. WorldEdit compass teleport), which is not useful.

@SirYwell
Copy link
Member

Does this also handle merged plots?

@dordsor21
Copy link
Member

Does this also handle merged plots?

Probably not, should be a getBasePlot I'd say

@Tjorven-Liebe
Copy link
Author

Tjorven-Liebe commented Feb 25, 2025

I've tested my code, by me it works totally fine. As baseplot references the main plot of a merge, this would also work, but plot in this case is the whole merge.

2025-02-25_15-11-02.1.mp4

Copy link
Member

@dordsor21 dordsor21 left a comment

Choose a reason for hiding this comment

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

the PlotArea#getPlot calls getBasePlot itself 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix This PR fixes a bug Feature This PR proposes a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants