From 1643399fc66267c9af5d4fd244539a3ff333bb96 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 23 Jun 2016 13:11:18 +1000 Subject: [PATCH] Alternatives for setowner none if the username is taken --- .../main/java/com/intellectualcrafters/plot/commands/Owner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java index d521af803..10b889753 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Owner.java @@ -41,7 +41,7 @@ public class Owner extends SetCommand { name = name == null ? value : name; } if (uuid == null) { - if (value.equalsIgnoreCase("none")) { + if (value.equalsIgnoreCase("none") || value.equalsIgnoreCase("null") || value.equalsIgnoreCase("-")) { Set connected = plot.getConnectedPlots(); plot.unlinkPlot(false, false); for (Plot current : connected) {