From 2677d2e557749fdd1727da3488d46aea117b106b Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Wed, 17 Dec 2014 19:15:31 -0600 Subject: [PATCH] Fancy icons for 1.8! --- .../mineplex/core/shop/page/ShopPageBase.java | 24 +++++++++++++++++++ .../privateServer/page/EditRotationPage.java | 7 ++++-- .../gui/privateServer/page/SetGamePage.java | 2 +- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/shop/page/ShopPageBase.java b/Plugins/Mineplex.Core/src/mineplex/core/shop/page/ShopPageBase.java index a0d916e8c..711e1614d 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/shop/page/ShopPageBase.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/shop/page/ShopPageBase.java @@ -3,6 +3,7 @@ package mineplex.core.shop.page; import org.bukkit.Sound; import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer; import org.bukkit.craftbukkit.v1_7_R4.inventory.CraftInventoryCustom; +import org.bukkit.craftbukkit.v1_7_R4.inventory.CraftItemStack; import org.bukkit.entity.Player; import org.bukkit.event.Listener; import org.bukkit.event.inventory.InventoryClickEvent; @@ -17,6 +18,7 @@ import mineplex.core.common.util.UtilInv; import mineplex.core.donation.DonationManager; import mineplex.core.shop.ShopBase; import mineplex.core.shop.item.IButton; +import mineplex.core.shop.item.ShopItem; public abstract class ShopPageBase> extends CraftInventoryCustom implements Listener { @@ -85,6 +87,21 @@ public abstract class ShopPageBase inventory.getSize() - 1) + { + ((CraftPlayer) Player).getHandle().inventory.setItem(getPlayerSlot(slot), nmsStack); + } + else + { + getInventory().setItem(slot, nmsStack); + } + } protected int getPlayerSlot(int slot) { @@ -98,6 +115,13 @@ public abstract class ShopPageBase