Alternatives for setowner none if the username is taken

This commit is contained in:
Jesse Boyd 2016-06-23 13:11:18 +10:00
parent 532fd09800
commit 1643399fc6

View File

@ -41,7 +41,7 @@ public class Owner extends SetCommand {
name = name == null ? value : name; name = name == null ? value : name;
} }
if (uuid == null) { if (uuid == null) {
if (value.equalsIgnoreCase("none")) { if (value.equalsIgnoreCase("none") || value.equalsIgnoreCase("null") || value.equalsIgnoreCase("-")) {
Set<Plot> connected = plot.getConnectedPlots(); Set<Plot> connected = plot.getConnectedPlots();
plot.unlinkPlot(false, false); plot.unlinkPlot(false, false);
for (Plot current : connected) { for (Plot current : connected) {