From 4668206fc52ffdde9a907c4e2a4f8993c7958bcc Mon Sep 17 00:00:00 2001 From: nickreesdev Date: Fri, 19 Feb 2021 20:02:10 -0600 Subject: [PATCH] Made it where the Delivery Man normal rewards are shown as coal skulls if the reward can't be claimed. --- .../zone/themcgamer/core/deliveryMan/menu/DeliveryManMenu.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/zone/themcgamer/core/deliveryMan/menu/DeliveryManMenu.java b/core/src/main/java/zone/themcgamer/core/deliveryMan/menu/DeliveryManMenu.java index 6f888eb..19c2ef5 100644 --- a/core/src/main/java/zone/themcgamer/core/deliveryMan/menu/DeliveryManMenu.java +++ b/core/src/main/java/zone/themcgamer/core/deliveryMan/menu/DeliveryManMenu.java @@ -56,8 +56,7 @@ public class DeliveryManMenu extends UpdatableMenu { for (DeliveryManReward reward : DeliveryManReward.values()) { boolean canClaim = (deliveryManManager.canClaim(player, reward) && optionalAccount.get().hasRank(reward.getRequiredRank())); ItemBuilder itemBuilder = new ItemBuilder(XMaterial.PLAYER_HEAD) - .setSkullOwner(reward.getRewardPackage().getIconTexture(player, optionalAccount.get())) - .setGlow(canClaim) + .setSkullOwner((canClaim ? reward.getRewardPackage().getIconTexture(player, optionalAccount.get()) : SkullTexture.COAL_BLOCK)) .setName((canClaim ? "§a" : "§c") + "§l" + reward.getDisplayName()) .addLoreLine("§7Claimable: " + (canClaim ? "§aYes" : "§cNo")); if (reward == DeliveryManReward.MONTHLY) {