Show / Hide Table of Contents

Class CommandHandler

Represents a single command handler

Inheritance
Object
CommandHandler
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.IO
Assembly: SlipeClient.dll
Syntax
public class CommandHandler

Constructors

| Improve this Doc View Source

CommandHandler(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 Source

Execute(String, String[])

Executes the command handler

Declaration
public static void Execute(string command, string[] args)
Parameters
Type Name Description
String command
String[] args
| Improve this Doc View Source

Execute(String[])

Executes the command handler

Declaration
public void Execute(string[] args)
Parameters
Type Name Description
String[] args
  • Improve this Doc
  • View Source
Back to top Generated by DocFX