Class Command
Decorate your method with this attribute and use RegisterCommands<T>() or RegisterCommands(Object) to register commands.
Inherited Members
Namespace: RageCoop.Server.Scripting
Assembly: RageCoop.Server.dll
Syntax
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public class Command : Attribute
Constructors
Command(String)
Declaration
public Command(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Name of the command |
Properties
ArgsLength
Set the length of arguments (Example: 2 for "/message USERNAME MESSAGE". Usage required!)
Declaration
public short ArgsLength { get; set; }
Property Value
| Type | Description |
|---|---|
| Int16 |
Name
Sets name of the command
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Usage
Set the Usage (Example: "Please use "/help"". ArgsLength required!)
Declaration
public string Usage { get; set; }
Property Value
| Type | Description |
|---|---|
| String |