Gem Boosters!
This commit is contained in:
parent
3a220b6f1c
commit
2e95548b6e
@ -1139,12 +1139,13 @@ public class GameLobbyManager implements IPacketRunnable, Listener
|
||||
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
{
|
||||
int gemBoosters = Manager.getInventoryManager().Get(player).Items.containsKey("Gem Booster") ? Manager.getInventoryManager().Get(player).Items.get("Gem Booster").Count : 0;
|
||||
int boosters = Manager.getInventoryManager().Get(player).getItemCount("Gem Booster");
|
||||
|
||||
player.getInventory().setItem(
|
||||
7,
|
||||
ItemStackFactory.Instance.CreateStack(Material.EMERALD, (byte) 0, 1, (short) 0, C.cGreen
|
||||
+ "Gem Booster",
|
||||
ItemStackFactory.Instance.CreateStack(Material.EMERALD, (byte) 0, boosters, (short) 0, C.cGreen
|
||||
+ boosters + " Gem Boosters" +
|
||||
(Manager.GetGame().GemBoosters.size() < 4 && boosters > 0 ? C.cWhite + " - " + C.cYellow + "Click for " + C.cGreen + (100-Manager.GetGame().GemBoosters.size()*25) + "%" + C.cYellow + " Boost" : ""),
|
||||
new String[]
|
||||
{
|
||||
C.cYellow + "Click for " + C.cGreen + (100-Manager.GetGame().GemBoosters.size()*25) + "%" + C.cYellow + " Boost",
|
||||
@ -1152,7 +1153,7 @@ public class GameLobbyManager implements IPacketRunnable, Listener
|
||||
ChatColor.RESET + "Boosts Gems earned for",
|
||||
ChatColor.RESET + "everyone in the game.",
|
||||
" ",
|
||||
C.cWhite + "Your Gem Boosters: " + C.cGreen + gemBoosters,
|
||||
C.cWhite + "Your Gem Boosters: " + C.cGreen + boosters,
|
||||
}
|
||||
)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user