Minor permission fix

This commit is contained in:
N0tMyFaultOG 2020-08-23 19:34:22 +02:00
parent 116b870152
commit 26a99a122a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -36,7 +36,7 @@ public enum Permission {
//<editor-fold desc="Static 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"),