mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-14 04:47:54 +00:00
Fix plot download/done
This commit is contained in:
parent
d34abf4f02
commit
02d17b363d
1 changed files with 5 additions and 2 deletions
|
@ -41,8 +41,11 @@ public class Download extends SubCommand {
|
|||
MainUtil.sendMessage(plr, C.PLOT_UNOWNED);
|
||||
return false;
|
||||
}
|
||||
if ((!plot.isOwner(plr.getUUID()) || (Settings.DOWNLOAD_REQUIRES_DONE && (FlagManager.getPlotFlagRaw(plot, "done") != null))) && !Permissions
|
||||
.hasPermission(plr, "plots.admin.command.download")) {
|
||||
if ((Settings.DOWNLOAD_REQUIRES_DONE && (FlagManager.getPlotFlagRaw(plot, "done") == null)) && !Permissions.hasPermission(plr, "plots.admin.command.download")) {
|
||||
MainUtil.sendMessage(plr, C.DONE_NOT_DONE);
|
||||
return false;
|
||||
}
|
||||
if ((!plot.isOwner(plr.getUUID()))) {
|
||||
MainUtil.sendMessage(plr, C.NO_PLOT_PERMS);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue