From 2d173a5be4b2c7d0c9b842afb1fc353288a8ca8b Mon Sep 17 00:00:00 2001 From: Mysticate Date: Mon, 28 Sep 2015 21:03:58 -0400 Subject: [PATCH] Fixed a jumper perk. --- .../monstermaze/kits/perks/PerkJumpsDisplay.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/monstermaze/kits/perks/PerkJumpsDisplay.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/monstermaze/kits/perks/PerkJumpsDisplay.java index 812db9ac6..c6b23dc7a 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/monstermaze/kits/perks/PerkJumpsDisplay.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/monstermaze/kits/perks/PerkJumpsDisplay.java @@ -7,7 +7,6 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.kit.Perk; -import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; @@ -29,10 +28,14 @@ public class PerkJumpsDisplay extends Perk if (!Kit.HasKit(player)) continue; - if (player.getInventory().getItem(8) == null || player.getInventory().getItem(8).getType() != Material.FEATHER || player.getInventory().getItem(8).getAmount() < 0) - continue; - - UtilTextBottom.display(F.elem(player.getInventory().getItem(8).getAmount() + "") + C.cWhite + " jumps left", player); + if (player.getInventory().getItem(8) == null || player.getInventory().getItem(8).getAmount() <= 0) + { + UtilTextBottom.display(C.cWhite + "No jumps left", player); + } + else + { + UtilTextBottom.display(F.elem(player.getInventory().getItem(8).getAmount() + "") + C.cWhite + " jumps left", player); + } } } }