Permission
Namespace Mc.Scripting.Permissions · Kind class (sealed)
public sealed class Permission : IEquatable<Permission>A declared permission node: its name, default and description.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
Permission(string Node, PermissionDefault Default, string Description = "") |
A declared permission node: its name, default and description. |
Constructor
Section titled “Constructor”public Permission(string Node, PermissionDefault Default, string Description = "")A declared permission node: its name, default and description.
Parameters
| Name | Type | Description |
|---|---|---|
Node |
string |
The dotted node, e.g. “homes.use”. |
Default |
PermissionDefault |
The value when nothing else decides. |
Description |
string = "" |
What the permission allows (shown by admin tools). |
Properties
Section titled “Properties”| Member | Description |
|---|---|
PermissionDefault Default { get; init; } |
The value when nothing else decides. |
string Description { get; init; } |
What the permission allows (shown by admin tools). |
string Node { get; init; } |
The dotted node, e.g. |
Default
Section titled “Default”public PermissionDefault Default { get; init; }The value when nothing else decides.
Description
Section titled “Description”public string Description { get; init; }What the permission allows (shown by admin tools).
public string Node { get; init; }The dotted node, e.g. “homes.use”.