implement players section

This commit is contained in:
zznty
2022-10-04 20:25:14 +07:00
parent fd2c272148
commit 5fa6cc52bb
4 changed files with 78 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
namespace TorchRemote.Models.Responses;
public record PlayerResponse(ulong ClientId, string Name, PlayerPromoteLevel PromoteLevel);
public enum PlayerPromoteLevel
{
/// <summary>Normal players</summary>
None,
/// <summary>Can edit scripts when the scripter role is enabled</summary>
Scripter,
/// <summary>
/// Can kick and ban players, has access to 'Show All Players' option in Admin Tools menu
/// </summary>
Moderator,
/// <summary>Has access to Space Master tools</summary>
SpaceMaster,
/// <summary>Has access to Admin tools</summary>
Admin,
/// <summary>Admins listed in server config, cannot be demoted</summary>
Owner,
}