diff --git a/Core/src/main/java/com/plotsquared/core/command/MainCommand.java b/Core/src/main/java/com/plotsquared/core/command/MainCommand.java index 4e9b366cf..daf747bbc 100644 --- a/Core/src/main/java/com/plotsquared/core/command/MainCommand.java +++ b/Core/src/main/java/com/plotsquared/core/command/MainCommand.java @@ -251,7 +251,7 @@ public class MainCommand extends Command { Plot newPlot = Plot.fromString(area, args[0]); if (newPlot != null && (player instanceof ConsolePlayer || newPlot.getArea() .equals(area) || Permissions.hasPermission(player, Permission.PERMISSION_ADMIN) - || Permissions.hasPermission(player, Permission.PERMISSION_ADMIN_SUDO_AREA)) + || Permissions.hasPermission(player, Permission.PERMISSION_ADMIN_AREA_SUDO)) && !newPlot.isDenied(player.getUUID())) { Location newLoc = newPlot.getCenterSynchronous(); if (player.canTeleport(newLoc)) { diff --git a/Core/src/main/java/com/plotsquared/core/permissions/Permission.java b/Core/src/main/java/com/plotsquared/core/permissions/Permission.java index 96768516e..028ca7e2b 100644 --- a/Core/src/main/java/com/plotsquared/core/permissions/Permission.java +++ b/Core/src/main/java/com/plotsquared/core/permissions/Permission.java @@ -36,7 +36,7 @@ public enum Permission { // PERMISSION_STAR("*"), PERMISSION_ADMIN("plots.admin"), - PERMISSION_ADMIN_SUDO_AREA("plots.admin.area.sudo"), + PERMISSION_ADMIN_AREA_SUDO("plots.admin.area.sudo"), PERMISSION_PROJECTILE_UNOWNED("plots.projectile.unowned"), PERMISSION_PROJECTILE_OTHER("plots.projectile.other"), PERMISSION_ADMIN_INTERACT_BLOCKED_CMDS("plots.admin.interact.blockedcommands"),