Allow trusted users to use /plot set

This commit is contained in:
dordsor21 2020-03-25 11:01:19 +00:00
parent 412a3ee344
commit f2f7fbce09

View file

@ -27,7 +27,7 @@ public abstract class SetCommand extends SubCommand {
return false;
}
}
if (!plot.isOwner(player.getUUID())) {
if (!plot.isOwner(player.getUUID()) && !plot.getTrusted().contains(player.getUUID())) {
if (!Permissions.hasPermission(player, CaptionUtility
.format(player, Captions.PERMISSION_ADMIN_COMMAND.getTranslated(), getFullId()))) {
MainUtil.sendMessage(player, Captions.NO_PERMISSION, CaptionUtility