Changeset 420 for binary-improvements/MapRendering/Web/API
- Timestamp:
- Mar 28, 2023, 5:11:02 PM (20 months ago)
- Location:
- binary-improvements/MapRendering/Web/API
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/ExecuteConsoleCommand.cs
r360 r420 31 31 } 32 32 33 int commandPermissionLevel = GameManager.Instance.adminTools. GetCommandPermissionLevel (command.GetCommands ());33 int commandPermissionLevel = GameManager.Instance.adminTools.Commands.GetCommandPermissionLevel (command.GetCommands ()); 34 34 35 35 if (_permissionLevel > commandPermissionLevel) { -
binary-improvements/MapRendering/Web/API/GetAllowedCommands.cs
r360 r420 9 9 JSONArray entries = new JSONArray (); 10 10 foreach (IConsoleCommand cc in SdtdConsole.Instance.GetCommands ()) { 11 int commandPermissionLevel = GameManager.Instance.adminTools. GetCommandPermissionLevel (cc.GetCommands ());11 int commandPermissionLevel = GameManager.Instance.adminTools.Commands.GetCommandPermissionLevel (cc.GetCommands ()); 12 12 if (_permissionLevel <= commandPermissionLevel) { 13 13 string cmd = string.Empty; -
binary-improvements/MapRendering/Web/API/GetLandClaims.cs
r369 r420 23 23 24 24 JSONObject result = new JSONObject (); 25 result.Add ("claimsize", new JSONNumber (GamePrefs.GetInt (EnumUtils.Parse<EnumGamePrefs> ( "LandClaimSize"))));25 result.Add ("claimsize", new JSONNumber (GamePrefs.GetInt (EnumUtils.Parse<EnumGamePrefs> (nameof(EnumGamePrefs.LandClaimSize))))); 26 26 27 27 JSONArray claimOwners = new JSONArray (); -
binary-improvements/MapRendering/Web/API/GetPlayerList.cs
r369 r420 68 68 pJson.Add ("ping", new JSONNumber (p.IsOnline ? p.ClientInfo.ping : -1)); 69 69 70 JSONBoolean banned = admTools != null ? new JSONBoolean (admTools. IsBanned (kvp.Key, out _, out _)) : new JSONBoolean (false);70 JSONBoolean banned = admTools != null ? new JSONBoolean (admTools.Blacklist.IsBanned (kvp.Key, out _, out _)) : new JSONBoolean (false); 71 71 72 72 pJson.Add ("banned", banned); -
binary-improvements/MapRendering/Web/API/GetPlayersLocation.cs
r369 r420 24 24 foreach (KeyValuePair<PlatformUserIdentifierAbs, Player> kvp in playersList.Dict) { 25 25 if (admTools != null) { 26 if (admTools. IsBanned (kvp.Key, out _, out _)) {26 if (admTools.Blacklist.IsBanned (kvp.Key, out _, out _)) { 27 27 continue; 28 28 }
Note:
See TracChangeset
for help on using the changeset viewer.