Add a GUI slider for setting the auto ban duration. Define the max auto ban length in the server settings. (Issue #128)

This commit is contained in:
itchyOwl
2018-03-27 11:29:36 +03:00
parent a48a4975ca
commit b599206294
3 changed files with 27 additions and 0 deletions
@@ -260,6 +260,14 @@ namespace Barotrauma.Networking
get;
private set;
}
[Serialize(360f, true)]
public float MaxAutoBanTime
{
get;
private set;
}
private void SaveSettings()
{
XDocument doc = new XDocument(new XElement("serversettings"));
@@ -369,6 +377,7 @@ namespace Barotrauma.Networking
extraCargo = new Dictionary<ItemPrefab, int>();
AutoBanTime = doc.Root.GetAttributeFloat("autobantime", 60);
MaxAutoBanTime = doc.Root.GetAttributeFloat("maxautobantime", 360);
}
public void LoadClientPermissions()