Add a check for punishment removal permission

This commit is contained in:
Alexander Meech 2016-12-06 20:52:49 -05:00 committed by cnr
parent 609d77a4f2
commit 3af0fe3bee
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ public class RemovePunishmentButton implements IButton
@Override @Override
public void onClick(Player player, ClickType clickType) public void onClick(Player player, ClickType clickType)
{
if (_punishPage.canUnban(true))
{ {
_punishPage.RemovePunishment(_punishment, _item); _punishPage.RemovePunishment(_punishment, _item);
} }
} }
}