Skip to content

Permission

Namespace Mc.Scripting.Permissions · Kind class (sealed)

public sealed class Permission : IEquatable<Permission>

A declared permission node: its name, default and description.

Member Description
Permission(string Node, PermissionDefault Default, string Description = "") A declared permission node: its name, default and description.
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).
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.
public PermissionDefault Default { get; init; }

The value when nothing else decides.

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”.

PermissionDefault