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

Class UnturnedCommandRegistration

Inheritance
System.Object
UnturnedCommandRegistration
Namespace: OpenMod.Unturned.Commands
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedCommandRegistration : ICommandRegistration

Constructors

| Improve this Doc View Source

UnturnedCommandRegistration(IOpenModComponent, Command)

Declaration
public UnturnedCommandRegistration(IOpenModComponent component, Command cmd)
Parameters
Type Name Description
IOpenModComponent component
Command cmd

Properties

| Improve this Doc View Source

Aliases

Declaration
public IReadOnlyCollection<string> Aliases { get; }
Property Value
Type Description
IReadOnlyCollection<System.String>
| Improve this Doc View Source

Cmd

Declaration
public Command Cmd { get; }
Property Value
Type Description
Command
| Improve this Doc View Source

Component

Declaration
public IOpenModComponent Component { get; }
Property Value
Type Description
IOpenModComponent
| Improve this Doc View Source

Description

Declaration
public string Description { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Id

Declaration
public string Id { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsEnabled

Declaration
public bool IsEnabled { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ParentId

Declaration
public string? ParentId { get; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

PermissionRegistrations

Declaration
public IReadOnlyCollection<IPermissionRegistration> PermissionRegistrations { get; }
Property Value
Type Description
IReadOnlyCollection<IPermissionRegistration>
| Improve this Doc View Source

Priority

Declaration
public Priority Priority { get; }
Property Value
Type Description
Priority
| Improve this Doc View Source

Syntax

Declaration
public string Syntax { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Instantiate(IServiceProvider)

Declaration
public ICommand Instantiate(IServiceProvider serviceProvider)
Parameters
Type Name Description
IServiceProvider serviceProvider
Returns
Type Description
ICommand
| Improve this Doc View Source

SupportsActor(ICommandActor)

Declaration
public bool SupportsActor(ICommandActor actor)
Parameters
Type Name Description
ICommandActor actor
Returns
Type Description
System.Boolean

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)