Auto ban users that have been vote kicked. Define the auto ban time in the server settings. (Issue #128) NOTE: Not tested!

This commit is contained in:
itchyOwl
2018-03-27 11:27:13 +03:00
parent 3106efa023
commit a48a4975ca
3 changed files with 10 additions and 0 deletions
@@ -254,6 +254,12 @@ namespace Barotrauma.Networking
set;
}
[Serialize(60f, true)]
public float AutoBanTime
{
get;
private set;
}
private void SaveSettings()
{
XDocument doc = new XDocument(new XElement("serversettings"));
@@ -361,6 +367,8 @@ namespace Barotrauma.Networking
if (!monsterEnabled.ContainsKey(s)) monsterEnabled.Add(s, true);
}
extraCargo = new Dictionary<ItemPrefab, int>();
AutoBanTime = doc.Root.GetAttributeFloat("autobantime", 60);
}
public void LoadClientPermissions()