OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface ICommandPermissionBuilder

The service for building command permissions. In other words; this service determines what permission a command requires.

Namespace: OpenMod.API.Commands
Assembly: OpenMod.API.dll
Syntax
public interface ICommandPermissionBuilder

Methods

| Improve this Doc View Source

GetPermission(ICommandRegistration)

Gets the permission required to use the given command.

Declaration
string GetPermission(ICommandRegistration command)
Parameters
Type Name Description
ICommandRegistration command

The command to get the permission for.

Returns
Type Description
System.String

The permission required to use the command.

| Improve this Doc View Source

GetPermission(ICommandRegistration, IReadOnlyCollection<ICommandRegistration>)

Gets the permission required to use the given command.

Declaration
string GetPermission(ICommandRegistration command, IReadOnlyCollection<ICommandRegistration> commands)
Parameters
Type Name Description
ICommandRegistration command

The command to get the permission for.

IReadOnlyCollection<ICommandRegistration> commands

The available commands used for determining child command permissions.

Returns
Type Description
System.String

The permission required to use the command.

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)