Skip to content

fix: plot entry trigger on teleport#4593

Merged
dordsor21 merged 2 commits intoIntellectualSites:mainfrom
Tjorven-Liebe:feature/fix/teleport-entry
Mar 5, 2025
Merged

fix: plot entry trigger on teleport#4593
dordsor21 merged 2 commits intoIntellectualSites:mainfrom
Tjorven-Liebe:feature/fix/teleport-entry

Conversation

@Tjorven-Liebe
Copy link
Contributor

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
Contributor 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 👍

@dordsor21 dordsor21 enabled auto-merge (squash) March 5, 2025 19:41
@dordsor21 dordsor21 merged commit f3400df into IntellectualSites:main Mar 5, 2025
8 checks passed
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

Comments