Skip to content

T_MSCLoader_ConsoleCommand

piotrulos edited this page Apr 7, 2023 · 4 revisions

ConsoleCommand Class

Base class for console commands

Inheritance Hierarchy

System.Object
  MSCLoader.ConsoleCommand
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.2.11.286

Syntax

C#

public abstract class ConsoleCommand

View Source
The ConsoleCommand type exposes the following members.

Properties

 

Name Description
Public property Alias Alternate command name that does the same thing. Cannot contain spaces!
Public property Help The help message that will be displayed for the command when the user types "help"
Public property Name The name of the ConsoleCommand (What the user will have to type in console to trigger the command). Cannot contain spaces!
Public property ShowInHelp Show this command in help screen. (Default true).
  Back to Top

Methods

 

Name Description
Public methodStatic member Add Adds a console command.
Public method Run The function that will get called when the command is ran.
  Back to Top

See Also

Reference

MSCLoader Namespace

Clone this wiki locally