Add support for disabling IP bans by default
Some proxy users find it irritating when their proxy IP is banned by the ban command. This helps those users find justice in the world.
This commit is contained in:
parent
70d4bb9503
commit
b17c4cfc13
3 changed files with 10 additions and 0 deletions
|
|
@ -1514,6 +1514,11 @@ namespace TShockAPI
|
|||
if (!exactTarget && !banAccount && !banUuid && !banName && !banIp)
|
||||
{
|
||||
banAccount = banUuid = banIp = true;
|
||||
|
||||
if (TShock.Config.Settings.DisableDefaultIPBan)
|
||||
{
|
||||
banIp = false;
|
||||
}
|
||||
}
|
||||
|
||||
reason = reason ?? "Banned";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue