메소드 | 설명 | |
---|---|---|
Ban ( string message, int minutes ) : void |
Issue the server commands to ban a player by ip.
|
|
ExecuteCommand ( string command ) : void |
Executes a supplied command on the client side of the player.
|
|
Find ( string target ) : Player | ||
FindByAuthId ( string authId ) : Player |
Finds an active Player by authid.
|
|
FindByName ( string name ) : Player |
Finds an active Player by name
|
|
FindByUserId ( int id ) : Player | ||
FindByUserId ( string id ) : Player | ||
GetInfoKeyValue ( string key ) : string |
Gets a specific value for a key from the infokeybuffer
|
|
GetPlayer ( |
Gets a Player according to the entity pointer. Needed most of the time for internal engine calls, since the entity pointer is used a lot.
|
|
GetUserID ( Player player ) : int | ||
GiveItem ( string itemname ) : Entity | ||
Kick ( string message ) : void |
Issue the server command to kick this player.
|
|
PrintCenter ( string text ) : void |
Prints some text to the Player central screen
|
|
PrintChat ( string text ) : void |
Prints some text to the players text in one color.
|
|
PrintConsole ( string text ) : void |
Prints some text to the Players Console.
|
|
RegisterCommand ( string str, ClientCommandDelegate handler ) : void | ||
ReloadAllPrivileges ( ) : void | ||
ReloadPrivileges ( ) : void | ||
SetInfoKeyValue ( string key, string val ) : void |
Sets some specific InfoKeyValue according to a key.
|
|
StripUserWeapons ( ) : void | ||
ToString ( ) : string |
Returns a string representation of the player class
|
|
UpdateUserInfo ( ) : void | ||
UpdateUserInfo ( string infoString ) : void |
메소드 | 설명 | |
---|---|---|
OnAssignPrivileges ( AssignPrivilegesEventArgs args ) : void | ||
OnAuthorize ( AuthorizeEventArgs args ) : void | ||
OnCommand ( CommandEventArgs args ) : void | ||
OnConnect ( ConnectEventArgs args ) : void | ||
OnDisconnect ( DisconnectEventArgs args ) : void | ||
OnPlayerAssignPrivileges ( AssignPrivilegesEventArgs args ) : void | ||
OnPlayerAuthorize ( AuthorizeEventArgs args ) : void | ||
OnPlayerClientDisconnect ( DisconnectEventArgs args ) : void | ||
OnPlayerCommand ( CommandEventArgs args ) : void | ||
OnPlayerConnect ( ConnectEventArgs args ) : void | ||
OnPlayerPutInServer ( PutInServerEventArgs args ) : void | ||
OnPutInServer ( PutInServerEventArgs args ) : void |
메소드 | 설명 | |
---|---|---|
OnAssignPrivileges ( Player player, |
||
OnAuthorize ( Player player ) : void | ||
OnCommand ( |
||
OnConnect ( |
||
OnDisconnect ( |
||
OnPutInServer ( |
||
Player ( |
Constructor for internal building of Players
|
|
Release ( ) : void |
Releases the event handlers
|
|
ResolvedBans ( |
||
ResolvedPrivileges ( |
public Ban ( string message, int minutes ) : void | ||
message | string |
/// A reason to kick/ban |
minutes | int |
/// The amount of minutes to ban a player by ip |
리턴 | void |
public ExecuteCommand ( string command ) : void | ||
command | string |
/// A command as a string which must end with ; |
리턴 | void |
public static FindByAuthId ( string authId ) : Player | ||
authId | string |
/// AuthId to search by |
리턴 | Player |
public static FindByName ( string name ) : Player | ||
name | string |
/// Name to search by |
리턴 | Player |
public GetInfoKeyValue ( string key ) : string | ||
key | string |
/// The key name |
리턴 | string |
public static GetPlayer ( |
||
entity |
/// A pointer to the entity class |
|
리턴 | Player |
public Kick ( string message ) : void | ||
message | string |
/// A reason for kicking |
리턴 | void |
protected static OnAssignPrivileges ( AssignPrivilegesEventArgs args ) : void | ||
args | AssignPrivilegesEventArgs | |
리턴 | void |
protected static OnAuthorize ( AuthorizeEventArgs args ) : void | ||
args | AuthorizeEventArgs | |
리턴 | void |
protected static OnCommand ( CommandEventArgs args ) : void | ||
args | CommandEventArgs | |
리턴 | void |
protected static OnConnect ( ConnectEventArgs args ) : void | ||
args | ConnectEventArgs | |
리턴 | void |
protected static OnDisconnect ( DisconnectEventArgs args ) : void | ||
args | DisconnectEventArgs | |
리턴 | void |
protected OnPlayerAssignPrivileges ( AssignPrivilegesEventArgs args ) : void | ||
args | AssignPrivilegesEventArgs | |
리턴 | void |
protected OnPlayerAuthorize ( AuthorizeEventArgs args ) : void | ||
args | AuthorizeEventArgs | |
리턴 | void |
protected OnPlayerClientDisconnect ( DisconnectEventArgs args ) : void | ||
args | DisconnectEventArgs | |
리턴 | void |
protected OnPlayerCommand ( CommandEventArgs args ) : void | ||
args | CommandEventArgs | |
리턴 | void |
protected OnPlayerConnect ( ConnectEventArgs args ) : void | ||
args | ConnectEventArgs | |
리턴 | void |
protected OnPlayerPutInServer ( PutInServerEventArgs args ) : void | ||
args | PutInServerEventArgs | |
리턴 | void |
protected static OnPutInServer ( PutInServerEventArgs args ) : void | ||
args | PutInServerEventArgs | |
리턴 | void |
public PrintCenter ( string text ) : void | ||
text | string |
/// Text to print |
리턴 | void |
public PrintChat ( string text ) : void | ||
text | string |
/// Text to print |
리턴 | void |
public PrintConsole ( string text ) : void | ||
text | string |
/// Text to print |
리턴 | void |
public static RegisterCommand ( string str, ClientCommandDelegate handler ) : void | ||
str | string | |
handler | ClientCommandDelegate | |
리턴 | void |
public SetInfoKeyValue ( string key, string val ) : void | ||
key | string |
/// The key |
val | string |
/// The value which has to be set to the key |
리턴 | void |
public UpdateUserInfo ( string infoString ) : void | ||
infoString | string | |
리턴 | void |