implement ban, add static data progress bar, allow changing server name

This commit is contained in:
Mikhail
2024-07-26 12:49:11 -04:00
parent 8ba6d69ade
commit cce8179e8d
5 changed files with 178 additions and 21 deletions

View File

@@ -79,6 +79,11 @@ namespace nksrv.Database
public bool ProfileIconIsPrism = false;
public bool IsAdmin = false;
public bool IsBanned = false;
public DateTime BanStart;
public DateTime BanEnd;
public int BanId = 0;
// Game data
public List<string> CompletedScenarios = [];
public Dictionary<string, FieldInfo> FieldInfo = []; // here for backwards compatibility
@@ -202,6 +207,7 @@ namespace nksrv.Database
public List<AccessToken> LauncherAccessTokens = [];
public Dictionary<string, GameClientInfo> GameClientTokens = [];
public string ServerName = "<color=\"green\">Private Server</color>";
}
internal class JsonDb
{