mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-04-02 01:36:25 +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;
|
return;
|
||||||
}
|
}
|
||||||
Plot plot = area.getPlot(location);
|
Plot plot = area.getPlot(location);
|
||||||
if (plot != null) {
|
if (plot != null && !plot.equals(lastPlot)) {
|
||||||
final boolean result = DenyTeleportFlag.allowsTeleport(pp, plot);
|
final boolean result = DenyTeleportFlag.allowsTeleport(pp, plot);
|
||||||
// there is one possibility to still allow teleportation:
|
// there is one possibility to still allow teleportation:
|
||||||
// to is identical to the plot's home location, and untrusted-visit is true
|
// to is identical to the plot's home location, and untrusted-visit is true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user