implement players section
This commit is contained in:
21
TorchRemote.Models/Responses/PlayerResponse.cs
Normal file
21
TorchRemote.Models/Responses/PlayerResponse.cs
Normal 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,
|
||||
}
|
Reference in New Issue
Block a user