From f0c7b1d6aafa8aaa8e50087f04efd010753849a6 Mon Sep 17 00:00:00 2001 From: LCastr0 Date: Sun, 18 Sep 2016 16:18:33 -0300 Subject: [PATCH] Whoops, forgot this --- .../core/bonuses/gui/buttons/PowerPlayClubButton.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/PowerPlayClubButton.java b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/PowerPlayClubButton.java index 103bdf28e..d3fd4409d 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/PowerPlayClubButton.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/PowerPlayClubButton.java @@ -1,9 +1,12 @@ package mineplex.core.bonuses.gui.buttons; +import java.util.ArrayList; + import mineplex.core.bonuses.BonusManager; import mineplex.core.common.util.C; import mineplex.core.common.util.F; import mineplex.core.common.util.UtilPlayer; +import mineplex.core.donation.DonationManager; import mineplex.core.gui.GuiItem; import mineplex.core.inventory.InventoryManager; import mineplex.core.powerplayclub.PowerPlayClubRepository; @@ -15,8 +18,6 @@ import org.bukkit.entity.Player; import org.bukkit.event.inventory.ClickType; import org.bukkit.inventory.ItemStack; -import java.util.ArrayList; - public class PowerPlayClubButton implements GuiItem { @@ -24,6 +25,7 @@ public class PowerPlayClubButton implements GuiItem private Player _player; private PowerPlayClubRepository _powerPlayClubRepository; private InventoryManager _inventoryManager; + private DonationManager _donationManager; private BonusManager _bonusManager; public PowerPlayClubButton(Player player, BonusManager manager) @@ -32,6 +34,7 @@ public class PowerPlayClubButton implements GuiItem _bonusManager = manager; _powerPlayClubRepository = manager.getPowerPlayClubRepository(); _inventoryManager = manager.getInventoryManager(); + _donationManager = manager.getDonationManager(); } @Override @@ -53,7 +56,7 @@ public class PowerPlayClubButton implements GuiItem { _player.closeInventory(); _player.playSound(_player.getLocation(), Sound.NOTE_PLING, 1, 1.6f); - PowerPlayClubRewards.giveAllItems(_player, _inventoryManager, _powerPlayClubRepository); + PowerPlayClubRewards.giveAllItems(_player, _donationManager, _inventoryManager, _powerPlayClubRepository); } else {