-
-
Notifications
You must be signed in to change notification settings - Fork 800
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
base: main
Are you sure you want to change the base?
fix: plot entry trigger on teleport #4593
Conversation
Yes, good point. Thank you. |
Does this also handle merged plots? |
Probably not, should be a |
Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java
Show resolved
Hide resolved
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 |
There was a problem hiding this 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 👍
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.