diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ItemListener.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ItemListener.java index 245cf91b7..c3bbbf9a8 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ItemListener.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/ItemListener.java @@ -71,21 +71,6 @@ public class ItemListener implements Listener, Runnable } } - /** - * Handle updated CustomItem stats and lore upon player - * switching items. - * - * @param event - */ - @EventHandler - public void onItemHeldChanged(PlayerItemHeldEvent event) - { - Player player = event.getPlayer(); - PlayerGear gear = getGear(player); - - gear.onItemHeldChanged(event); - } - /** * Handle the trigger of custom gear related effects and abilities. * diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/PlayerGear.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/PlayerGear.java index 0efe55a34..3601524c7 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/PlayerGear.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/items/PlayerGear.java @@ -56,7 +56,6 @@ public class PlayerGear if (legendary.OriginalOwner == null) { legendary.OriginalOwner = getPlayer().getUniqueId().toString(); - getPlayer().setItemInHand(legendary.toItemStack()); } } } @@ -108,22 +107,6 @@ public class PlayerGear { forEachGear(item -> item.onAttacked(event)); } - - /** - * Update appropriate gear status and item lores. - * - * @param event - the triggering item held change event. - */ - public void onItemHeldChanged(PlayerItemHeldEvent event) - { - ItemStack item = getPlayer().getItemInHand(); - CustomItem weapon = getWeapon(); - - if (weapon != null) - { - weapon.update(item); // Update held-item's stats. - } - } private void forEachGear(Consumer itemConsumer) {