Ignore:
Timestamp:
Apr 10, 2023, 8:23:15 PM (19 months ago)
Author:
alloc
Message:
  • API "map" added, currently only supports GET with the ID "config"
  • API "player" added, currently only supports getting online players with some of the info not supported yet (playtime, last online, level)
  • Only logged in player's data is shown unless the user has the permission for "webapi.viewallplayers"
  • Internal refactoring
  • (Updated version to 21.0.258)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/WebConnection.cs

    r404 r425  
    3333                }
    3434
    35                 public static bool CanViewAllPlayers (int _permissionLevel) {
    36                         return AdminWebModules.Instance.ModuleAllowedWithLevel ("webapi.viewallplayers", _permissionLevel);
    37                 }
    38 
    39                 public static bool CanViewAllClaims (int _permissionLevel) {
    40                         return AdminWebModules.Instance.ModuleAllowedWithLevel ("webapi.viewallclaims", _permissionLevel);
    41                 }
    42 
    4335                public void UpdateUsage () {
    4436                        lastAction = DateTime.Now;
Note: See TracChangeset for help on using the changeset viewer.