Can prevent this by using:
object OnServerCommand(ConsoleSystem.Arg arg) // Credit: FauxAdmin
{
if (arg == null || arg.cmd == null) return null;
string command = arg.cmd.Name;
string reason = arg.GetString(1).ToString();
if (command.Equals("ban") || command.Equals("banid"))
{
if (reason.Equals("Cheat Detected!"))
{
var player = arg.GetPlayer(0);
if (player != null && player.IPlayer.HasPermission(perm_use))
{
//PrintWarning($"{Name} Ban Blocker stopped a ban of " + player.ToString() + " for " + reason);
return false;
}
}
}
return null;
}
object OnServerCommand(ConsoleSystem.Arg arg) // Credit: FauxAdmin
{
if (arg == null || arg.cmd == null) return null;
string command = arg.cmd.Name;
string reason = arg.GetString(1).ToString();
if (command.Equals("ban") || command.Equals("banid"))
{
if (reason.Equals("Cheat Detected!"))
{
var player = arg.GetPlayer(0);
if (player != null && player.IPlayer.HasPermission(perm_use))
{
//PrintWarning($"{Name} Ban Blocker stopped a ban of " + player.ToString() + " for " + reason);
return false;
}
}
}
return null;
}