Arcade: Close only non-player inventories at 5 seconds

This commit is contained in:
libraryaddict 2015-04-30 21:17:08 +12:00
parent 23ea7bbce4
commit 5d36ddce3a

View File

@ -154,15 +154,22 @@ public class CosmeticManager extends MiniPlugin
_gadgetManager.setActiveItemSlot(i-1);
}
public void setActive(boolean b)
public void setActive(boolean showInterface)
{
_showInterface = b;
if (!b)
_showInterface = showInterface;
if (!showInterface)
{
for (Player player : UtilServer.getPlayers())
player.getOpenInventory().close();
{
if (player.getOpenInventory().getTopInventory().getHolder() != player)
{
player.closeInventory();
}
}
}
}
public void disableItemsForGame()
{
_gadgetManager.DisableAll();