Fixed set command -> not allowing unclaimed plots

This commit is contained in:
Sauilitired 2014-10-21 07:44:17 +02:00
parent 9427bc7773
commit 5759e3e761

View File

@ -44,7 +44,10 @@ public class Set extends SubCommand {
return false; return false;
} }
Plot plot = PlayerFunctions.getCurrentPlot(plr); Plot plot = PlayerFunctions.getCurrentPlot(plr);
if(!plot.hasOwner()) {
sendMessage(plr, C.PLOT_NOT_CLAIMED);
return true;
}
if (!plot.hasRights(plr) && !plr.hasPermission("plots.admin")) { if (!plot.hasRights(plr) && !plr.hasPermission("plots.admin")) {
PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS); PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS);
return false; return false;