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

Class ConsoleActor

Inheritance
System.Object
ConsoleActor
Implements
ICommandActor
IPermissionActor
Namespace: OpenMod.Core.Console
Assembly: OpenMod.Core.dll
Syntax
public class ConsoleActor : object, ICommandActor, IPermissionActor

Constructors

| Improve this Doc View Source

ConsoleActor(ILogger<ConsoleActor>, String)

Declaration
public ConsoleActor(ILogger<ConsoleActor> logger, string consoleId)
Parameters
Type Name Description
ILogger<ConsoleActor> logger
System.String consoleId

Properties

| Improve this Doc View Source

Data

Declaration
public Dictionary<string, object> Data { get; }
Property Value
Type Description
Dictionary<System.String, System.Object>
| Improve this Doc View Source

DisplayName

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

FullActorName

Declaration
public string FullActorName { 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

Type

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

Methods

| Improve this Doc View Source

PrintMessageAsync(String)

Declaration
public Task PrintMessageAsync(string message)
Parameters
Type Name Description
System.String message
Returns
Type Description
Task
| Improve this Doc View Source

PrintMessageAsync(String, Color)

Declaration
public Task PrintMessageAsync(string message, Color color)
Parameters
Type Name Description
System.String message
Color color
Returns
Type Description
Task

Implements

ICommandActor
IPermissionActor

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)