diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index 1a2bcbba5..0b6af19f1 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -1673,7 +1673,7 @@ public class PlayerEvents extends PlotListener implements Listener { return; } } else if (lastPlot != null && now.equals(lastPlot)) { - if (!Flags.TELEPORT_DENY.allowsTeleport(pp, lastPlot)) { + if (!Flags.DENY_TELEPORT.allowsTeleport(pp, lastPlot)) { event.setTo(BukkitUtil.getLocation(lastPlot.getSide())); } return; @@ -1746,7 +1746,7 @@ public class PlayerEvents extends PlotListener implements Listener { return; } } else if (lastPlot != null && now.equals(lastPlot)) { - if (!Flags.TELEPORT_DENY.allowsTeleport(pp, lastPlot)) { + if (!Flags.DENY_TELEPORT.allowsTeleport(pp, lastPlot)) { event.setTo(BukkitUtil.getLocation(lastPlot.getSide())); } return;