From a420339017f83ccc07cfb18064788b8cadcbae7f Mon Sep 17 00:00:00 2001 From: Video Date: Sun, 13 Nov 2022 06:46:48 -0700 Subject: [PATCH] Resolves FS-348 --- .../totalfreedommod/command/Command_whohas.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_whohas.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_whohas.java index ac819030..307fe449 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_whohas.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_whohas.java @@ -56,12 +56,9 @@ public class Command_whohas extends FreedomCommand if (player.getInventory().contains(material)) { players.add(player.getName()); - if (plugin.al.isAdmin(sender)) + if (plugin.al.isAdmin(sender) && doClear && !plugin.al.isAdmin(player)) { - if (doClear && !plugin.al.isAdmin(player)) - { - player.getInventory().remove(material); - } + player.getInventory().remove(material); } } }