fix: plot entry trigger on teleport (#4593)

This commit is contained in:
Tjorven Liebe 2025-03-05 20:43:27 +01:00 committed by GitHub
parent beb7cb40f4
commit f3400df811
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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