public static void unhardbanPlayer(Player player, string name)
{
if (!Main.PlayerNames.ContainsValue(name))
{
Notify.Send(player, NotifyType.Error, NotifyPosition.BottomCenter, "Такого имени нет!", 3000);
return;
}
if (!Ban.PardonHard(name))
{
Notify.Send(player, NotifyType.Error, NotifyPosition.BottomCenter, $"{name} не находится в бане!", 3000);
return;
}
Notify.Send(player, NotifyType.Success, NotifyPosition.BottomCenter, "С игрока снят хардбан!", 3000);
}