mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Resolves FS-348
This commit is contained in:
parent
2b5ea048cc
commit
a420339017
@ -56,15 +56,12 @@ public class Command_whohas extends FreedomCommand
|
|||||||
if (player.getInventory().contains(material))
|
if (player.getInventory().contains(material))
|
||||||
{
|
{
|
||||||
players.add(player.getName());
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (players.isEmpty())
|
if (players.isEmpty())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user