C# 클래스 fCraft.CommandDescriptor

Describes a chat command. Defines properties, permission requirements, and usage information. Specifies a handler method.
상속: IClassy
파일 보기 프로젝트 열기: GlennMR/800craft 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Call ( [ player, [ cmd, bool raiseEvent ) : bool

Calls this command.

CanBeCalledBy ( [ rank ) : bool

Checks whether this command may be called by players of a given rank.

IsVisibleTo ( [ rank ) : bool

Checks whether players of the given rank should see this command in /cmds list. Takes permissions and the hidden flag into account.

PrintHelpSection ( Player player, string sectionName ) : void

Prints a command HelpSection syntax to the given player. If that fails, it will print the usage instead

PrintUsage ( [ player ) : void

Prints command usage syntax to the given player.

ToString ( ) : string

메소드 상세

Call() 공개 메소드

Calls this command.
public Call ( [ player, [ cmd, bool raiseEvent ) : bool
player [ Player who called the command.
cmd [ Command arguments.
raiseEvent bool Whether CommandCalling and CommandCalled events should be raised.
리턴 bool

CanBeCalledBy() 공개 메소드

Checks whether this command may be called by players of a given rank.
public CanBeCalledBy ( [ rank ) : bool
rank [
리턴 bool

IsVisibleTo() 공개 메소드

Checks whether players of the given rank should see this command in /cmds list. Takes permissions and the hidden flag into account.
public IsVisibleTo ( [ rank ) : bool
rank [
리턴 bool

PrintHelpSection() 공개 메소드

Prints a command HelpSection syntax to the given player. If that fails, it will print the usage instead
public PrintHelpSection ( Player player, string sectionName ) : void
player Player
sectionName string
리턴 void

PrintUsage() 공개 메소드

Prints command usage syntax to the given player.
public PrintUsage ( [ player ) : void
player [
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string