Add a check for punishment removal permission
This commit is contained in:
parent
609d77a4f2
commit
3af0fe3bee
@ -23,6 +23,9 @@ public class RemovePunishmentButton implements IButton
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(Player player, ClickType clickType)
|
public void onClick(Player player, ClickType clickType)
|
||||||
{
|
{
|
||||||
_punishPage.RemovePunishment(_punishment, _item);
|
if (_punishPage.canUnban(true))
|
||||||
|
{
|
||||||
|
_punishPage.RemovePunishment(_punishment, _item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user