Class CommandHandler
Represents a single command handler
Inherited Members
Namespace: Slipe.Client.IO
Assembly: SlipeClient.dll
Syntax
public class CommandHandler
Constructors
| Improve this Doc View SourceCommandHandler(String, Action<String, String[]>, Boolean, Boolean)
Adds a command handler to be used by players
Declaration
public CommandHandler(string command, Action<string, string[]> callback, bool restricted = false, bool caseSensitive = true)
Parameters
Type | Name | Description |
---|---|---|
String | command | |
Action<String, String[]> | callback | |
Boolean | restricted | |
Boolean | caseSensitive |
Methods
| Improve this Doc View SourceExecute(String, String[])
Executes the command handler
Declaration
public static void Execute(string command, string[] args)
Parameters
Type | Name | Description |
---|---|---|
String | command | |
String[] | args |
Execute(String[])
Executes the command handler
Declaration
public void Execute(string[] args)
Parameters
Type | Name | Description |
---|---|---|
String[] | args |