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 SourceGetPermission(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. |
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. |