From 01d508edf4aa4c671db18524c2b7ef53ef89bcd0 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 20 Jun 2016 15:08:56 +1000 Subject: [PATCH] Fix remove * --- .../com/intellectualcrafters/plot/commands/Remove.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java index 7ccbe18a3..dc1d7bcdb 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Remove.java @@ -1,6 +1,7 @@ package com.intellectualcrafters.plot.commands; import com.intellectualcrafters.plot.config.C; +import com.intellectualcrafters.plot.database.DBFunc; import com.intellectualcrafters.plot.object.Location; import com.intellectualcrafters.plot.object.Plot; import com.intellectualcrafters.plot.object.PlotPlayer; @@ -69,7 +70,12 @@ public class Remove extends SubCommand { Set uuids = MainUtil.getUUIDsFromString(args[0]); if (!uuids.isEmpty()) { for (UUID uuid : uuids) { - if (plot.getTrusted().contains(uuid)) { + if (uuid == DBFunc.everyone) { + if (plot.removeTrusted(uuid) | plot.removeMember(uuid) | plot.removeDenied(uuid)) { + count++; + } + } + else if (plot.getTrusted().contains(uuid)) { if (plot.removeTrusted(uuid)) { count++; }