Arcade: Close only non-player inventories at 5 seconds
This commit is contained in:
parent
23ea7bbce4
commit
5d36ddce3a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user