Table of Contents

Interface IPermissionHolder

Namespace
Shard.Modding.SDK.Permission
Assembly
Shard.Modding.SDK.dll

Anything that can hold permissions (the console, players). Permission ids are dot-namespaced nodes (e.g. hytale.command.stop) supporting wildcard segments and - negation; the root grants everything. Mirrors the upstream PermissionHolder.

public interface IPermissionHolder

Methods

HasPermission(string)

True if this holder is granted id (default false when unset).

bool HasPermission(string id)

Parameters

id string

Returns

bool

HasPermission(string, bool)

True if granted id; returns def when unset.

bool HasPermission(string id, bool def)

Parameters

id string
def bool

Returns

bool