C# 클래스 TShockAPI.Hooks.PlayerHooks

A collection of events fired by players that can be hooked to.
파일 보기 프로젝트 열기: NyxStudios/TShock

공개 메소드들

메소드 설명
OnPlayerChat ( TSPlayer ply, string rawtext, string &tshockText ) : void

Fires the PlayerChat event.

OnPlayerCommand ( TSPlayer player, string cmdName, string cmdText, List args, IEnumerable &commands, string cmdPrefix ) : bool

Fires the PlayerCommand event.

OnPlayerLogout ( TSPlayer ply ) : void

Fires the PlayerLogout event.

OnPlayerPermission ( TSPlayer player, string permission ) : bool

Fires the PlayerPermission event.

OnPlayerPostLogin ( TSPlayer ply ) : void

Fires the PlayerPostLogin event.

OnPlayerPreLogin ( TSPlayer ply, string name, string pass ) : bool

Fires the PlayerPreLogin event.

메소드 상세

OnPlayerChat() 공개 정적인 메소드

Fires the PlayerChat event.
public static OnPlayerChat ( TSPlayer ply, string rawtext, string &tshockText ) : void
ply TSPlayer The player firing the event.
rawtext string The raw chat text sent by the player.
tshockText string The chat text after being formatted.
리턴 void

OnPlayerCommand() 공개 정적인 메소드

Fires the PlayerCommand event.
public static OnPlayerCommand ( TSPlayer player, string cmdName, string cmdText, List args, IEnumerable &commands, string cmdPrefix ) : bool
player TSPlayer The player firing the event.
cmdName string The command name.
cmdText string The raw command text.
args List The command args extracted from the command text.
commands IEnumerable The list of commands.
cmdPrefix string The command specifier used.
리턴 bool

OnPlayerLogout() 공개 정적인 메소드

Fires the PlayerLogout event.
public static OnPlayerLogout ( TSPlayer ply ) : void
ply TSPlayer The player firing the event.
리턴 void

OnPlayerPermission() 공개 정적인 메소드

Fires the PlayerPermission event.
public static OnPlayerPermission ( TSPlayer player, string permission ) : bool
player TSPlayer The player firing the event.
permission string
리턴 bool

OnPlayerPostLogin() 공개 정적인 메소드

Fires the PlayerPostLogin event.
public static OnPlayerPostLogin ( TSPlayer ply ) : void
ply TSPlayer The player firing the event.
리턴 void

OnPlayerPreLogin() 공개 정적인 메소드

Fires the PlayerPreLogin event.
public static OnPlayerPreLogin ( TSPlayer ply, string name, string pass ) : bool
ply TSPlayer The player firing the event.
name string The user name.
pass string The password.
리턴 bool