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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user