C# Class YurikoCS.Command

Exibir arquivo Open project: ItalianDevs4PM/Yuriko-CS Class Usage Examples

Public Methods

Method Description
Command ( string command, CommandExecutor executor ) : System
Command ( string command, CommandExecutor executor, string description ) : System
Command ( string command, CommandExecutor executor, string description, Permission permission ) : System
CommandExists ( Command command ) : bool
Execute ( CommandSender sender, string command ) : bool
GetCommandDescription ( ) : string
GetCommandName ( ) : string
GetCommandPermission ( ) : Permission
GetExecutor ( ) : CommandExecutor
OverrideCommand ( Command command ) : bool
RegisterCommand ( Command command ) : bool
UnregisterCommand ( Command command ) : bool

Method Details

Command() public method

public Command ( string command, CommandExecutor executor ) : System
command string
executor CommandExecutor
return System

Command() public method

public Command ( string command, CommandExecutor executor, string description ) : System
command string
executor CommandExecutor
description string
return System

Command() public method

public Command ( string command, CommandExecutor executor, string description, Permission permission ) : System
command string
executor CommandExecutor
description string
permission Permission
return System

CommandExists() public static method

public static CommandExists ( Command command ) : bool
command Command
return bool

Execute() public static method

public static Execute ( CommandSender sender, string command ) : bool
sender CommandSender
command string
return bool

GetCommandDescription() public method

public GetCommandDescription ( ) : string
return string

GetCommandName() public method

public GetCommandName ( ) : string
return string

GetCommandPermission() public method

public GetCommandPermission ( ) : Permission
return Permission

GetExecutor() public method

public GetExecutor ( ) : CommandExecutor
return CommandExecutor

OverrideCommand() public static method

public static OverrideCommand ( Command command ) : bool
command Command
return bool

RegisterCommand() public static method

public static RegisterCommand ( Command command ) : bool
command Command
return bool

UnregisterCommand() public static method

public static UnregisterCommand ( Command command ) : bool
command Command
return bool