diff --git a/Plugins/Mineplex.Core/src/mineplex/core/punish/UI/RemovePunishmentButton.java b/Plugins/Mineplex.Core/src/mineplex/core/punish/UI/RemovePunishmentButton.java index 8989c87ba..fb4e72cd9 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/punish/UI/RemovePunishmentButton.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/punish/UI/RemovePunishmentButton.java @@ -23,6 +23,9 @@ public class RemovePunishmentButton implements IButton @Override public void onClick(Player player, ClickType clickType) { - _punishPage.RemovePunishment(_punishment, _item); + if (_punishPage.canUnban(true)) + { + _punishPage.RemovePunishment(_punishment, _item); + } } }