PermissionGate

Namespace: uModPlugins

Assembly: uMod.Core.dll

Inheritance ObjectBaseGateGate PermissionGate

Implements IGate, IEnumerable<String>, IEnumerable, IPermissionGate

Summary

Represents a permission gate class

Constructors

Name

Summary

PermissionGate (IPlugin)

Create a permission gate object for the specified plugin

Properties

Name

Summary

Permissions

List of all permissions supported by this gate

Policies

List of all permissions supported by this gate

Methods

Name

Summary

Allows (String, IPlayer)

Determine if player is allowed to use permission

Allows (String, Object[])

Determine if player is allowed to use permission

Denies (String, IPlayer)

Determine if player is not allowed to use permission

Denies (String, Object[])

Determine if player is not allowed to use permission

Has (String)

Determine if gate supports specified permission

Register (String, Func<Boolean>)

Register permission policy with optional custom callback

Register (String)

Register permission policy

Register (String, Func<Object, Object[], Boolean>)

Register permission policy with optional custom callback