Resolves FS-348

This commit is contained in:
Video 2022-11-13 06:46:48 -07:00 committed by Paul Reilly
parent 2b5ea048cc
commit a420339017

View File

@ -56,15 +56,12 @@ public class Command_whohas extends FreedomCommand
if (player.getInventory().contains(material))
{
players.add(player.getName());
if (plugin.al.isAdmin(sender))
{
if (doClear && !plugin.al.isAdmin(player))
if (plugin.al.isAdmin(sender) && doClear && !plugin.al.isAdmin(player))
{
player.getInventory().remove(material);
}
}
}
}
if (players.isEmpty())
{