Skip to content

Commit f3400df

Browse files
fix: plot entry trigger on teleport (#4593)
1 parent beb7cb4 commit f3400df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public void onTeleport(PlayerTeleportEvent event) {
593593
return;
594594
}
595595
Plot plot = area.getPlot(location);
596-
if (plot != null) {
596+
if (plot != null && !plot.equals(lastPlot)) {
597597
final boolean result = DenyTeleportFlag.allowsTeleport(pp, plot);
598598
// there is one possibility to still allow teleportation:
599599
// to is identical to the plot's home location, and untrusted-visit is true

0 commit comments

Comments
 (0)