mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 04:53:00 +00:00
Permission checks
This commit is contained in:
parent
e7342d5a5e
commit
fcdbd341d8
30 changed files with 109 additions and 109 deletions
|
@ -85,7 +85,7 @@ public class Merge extends SubCommand {
|
|||
PlayerFunctions.sendMessage(plr, C.PLOT_UNOWNED);
|
||||
return false;
|
||||
}
|
||||
boolean admin = PlotSquared.hasPermission(plr, "plots.admin.command.merge");
|
||||
boolean admin = BukkitMain.hasPermission(plr, "plots.admin.command.merge");
|
||||
if (!plot.getOwner().equals(UUIDHandler.getUUID(plr)) && !admin) {
|
||||
PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue