mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Minor permission fix
This commit is contained in:
parent
116b870152
commit
26a99a122a
@ -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)) {
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user