Changed OpenBalloons so it actually opens the balloons menu

This commit is contained in:
LCastr0 2017-01-11 19:12:29 -02:00 committed by cnr
parent a1a0271cd9
commit 7f22872dd6

View File

@ -2,8 +2,7 @@ package mineplex.core.cosmetic.ui.button.open;
import org.bukkit.entity.Player;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilPlayer;
import mineplex.core.cosmetic.ui.page.BalloonsPage;
import mineplex.core.cosmetic.ui.page.Menu;
import mineplex.core.gadget.types.Gadget;
@ -18,8 +17,7 @@ public class OpenBalloons extends OpenPageButton
@Override
protected void leftClick(Player player)
{
UtilPlayer.message(player, F.main("Balloons", "Coming Soon!"));
//getMenu().getShop().openPageForPlayer(player, new BalloonsPage(getMenu().getPlugin(), getMenu().getShop(), getMenu().getClientManager(), getMenu().getDonationManager(), "Balloons", player));
getMenu().getShop().openPageForPlayer(player, new BalloonsPage(getMenu().getPlugin(), getMenu().getShop(), getMenu().getClientManager(), getMenu().getDonationManager(), "Balloons", player));
}
}