diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/item/ItemSortal.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/item/ItemSortal.java index 7d3341685..f27bb2481 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/item/ItemSortal.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/item/ItemSortal.java @@ -73,6 +73,20 @@ public class ItemSortal extends ItemGadget createAndFire(player, player.getLocation().add(0, 3, 0), 20); } + @Override + public void disableCustom(Player player, boolean message) + { + super.disableCustom(player, message); + + _sortals.forEach(sortal -> + { + if (sortal.Wielder.equals(player)) + { + sortal.remove(); + } + }); + } + @EventHandler public void adminCommand(PlayerCommandPreprocessEvent event) {