From 26a99a122a04d32b10273b3a5742cf4e8e82bc7b Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Sun, 23 Aug 2020 19:34:22 +0200 Subject: [PATCH] Minor permission fix --- .../src/main/java/com/plotsquared/core/command/MainCommand.java | 2 +- .../main/java/com/plotsquared/core/permissions/Permission.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"),