bypass owner check for download

This commit is contained in:
Jesse Boyd 2017-06-29 15:38:37 +10:00
parent 355e16fe92
commit f6540bbfcb
No known key found for this signature in database
GPG key ID: 59F1DE6293AF6E1F

View file

@ -46,7 +46,7 @@ public class Download extends SubCommand {
MainUtil.sendMessage(player, C.DONE_NOT_DONE);
return false;
}
if ((!plot.isOwner(player.getUUID()))) {
if ((!plot.isOwner(player.getUUID())) && !Permissions.hasPermission(player, C.PERMISSION_ADMIN.s())) {
MainUtil.sendMessage(player, C.NO_PLOT_PERMS);
return false;
}