mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-03-31 08:46:24 +02:00
fix: plot entry trigger on teleport (#4593)
This commit is contained in:
parent
beb7cb40f4
commit
f3400df811
@ -593,7 +593,7 @@ public class PlayerEventListener implements Listener {
|
||||
return;
|
||||
}
|
||||
Plot plot = area.getPlot(location);
|
||||
if (plot != null) {
|
||||
if (plot != null && !plot.equals(lastPlot)) {
|
||||
final boolean result = DenyTeleportFlag.allowsTeleport(pp, plot);
|
||||
// there is one possibility to still allow teleportation:
|
||||
// to is identical to the plot's home location, and untrusted-visit is true
|
||||
|
Loading…
x
Reference in New Issue
Block a user