Change more closeInventory calls
This commit is contained in:
parent
8e92317b9c
commit
36f4e6b5a1
@ -106,7 +106,7 @@ public class ChampionsCTF extends CaptureTheFlag
|
||||
if (GetKit(player) == null)
|
||||
{
|
||||
SetKit(player, GetKits()[2], true);
|
||||
player.closeInventory();
|
||||
UtilPlayer.closeInventoryIfOpen(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ public class ChampionsDominate extends Domination
|
||||
if (GetKit(player) == null)
|
||||
{
|
||||
SetKit(player, GetKits()[2], true);
|
||||
player.closeInventory();
|
||||
UtilPlayer.closeInventoryIfOpen(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ public class ChampionsTDM extends TeamDeathmatch
|
||||
if (GetKit(player) == null)
|
||||
{
|
||||
SetKit(player, GetKits()[2], true);
|
||||
player.closeInventory();
|
||||
UtilPlayer.closeInventoryIfOpen(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ public class TeamDeathmatch extends TeamGame
|
||||
if (GetKit(player) == null)
|
||||
{
|
||||
SetKit(player, GetKits()[2], true);
|
||||
player.closeInventory();
|
||||
UtilPlayer.closeInventoryIfOpen(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -511,7 +511,7 @@ public abstract class SuperSmash extends Game
|
||||
|
||||
if (announce)
|
||||
{
|
||||
player.closeInventory();
|
||||
UtilPlayer.closeInventoryIfOpen(player);
|
||||
player.playSound(player.getLocation(), Sound.ORB_PICKUP, 2f, 1f);
|
||||
UtilPlayer.message(player, F.main("Kit", "You equipped " + F.elem(kit.GetFormattedName() + " Kit") + "."));
|
||||
kit.ApplyKit(player);
|
||||
|
Loading…
Reference in New Issue
Block a user