From 5759e3e761a3dc3319bf64e7894b9510289da0d9 Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Tue, 21 Oct 2014 07:44:17 +0200 Subject: [PATCH] Fixed set command -> not allowing unclaimed plots --- .../src/com/intellectualcrafters/plot/commands/Set.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java index f18105ca4..1362377a6 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java @@ -44,7 +44,10 @@ public class Set extends SubCommand { return false; } Plot plot = PlayerFunctions.getCurrentPlot(plr); - + if(!plot.hasOwner()) { + sendMessage(plr, C.PLOT_NOT_CLAIMED); + return true; + } if (!plot.hasRights(plr) && !plr.hasPermission("plots.admin")) { PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS); return false;