mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fixed set command -> not allowing unclaimed plots
This commit is contained in:
parent
9427bc7773
commit
5759e3e761
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user