C# 클래스 Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.PlayerHandler

Handles player connects and disconnects and keep a dictionary of all logged in players. Raises events when a player is added or removed from the list, and can sync with ingame player lists.
파일 보기 프로젝트 열기: Bertware/bukkitgui2

Private Properties

프로퍼티 타입 설명
HandlePlayerDisconnect void
HandlePlayerJoin void
RaisePlayerListAdditionEvent void
RaisePlayerListChangedEvent void
RaisePlayerListDeletionEvent void

공개 메소드들

메소드 설명
AddPlayer ( Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player player ) : void

Add a player to the online players list and raise the according events

GetOnlinePlayerByName ( String name ) : Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player

Get an online player by their name

GetOnlinePlayerCount ( ) : int

Get the amount of online players

GetOnlinePlayerNames ( ) : IEnumerable

Get the online players

GetOnlinePlayers ( ) : IEnumerable

Get the online players

Initialize ( ) : void

Initialize the PlayerHandler class

IsPlayerListed ( String name ) : System.Boolean

Check if a player is listed in the dictionarry of online players

RemovePlayer ( Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player player ) : void

Remove a player from the online players list and raise the according events

비공개 메소드들

메소드 설명
HandlePlayerDisconnect ( string text, Net.Bertware.Bukkitgui2.MinecraftInterop.OutputHandler.OutputParseResult outputParseResult, IPlayerAction playeraction ) : void

Handle a player disconnect event

HandlePlayerJoin ( string text, Net.Bertware.Bukkitgui2.MinecraftInterop.OutputHandler.OutputParseResult outputparseresult, IPlayerAction playeraction ) : void

Handle a player join event

RaisePlayerListAdditionEvent ( Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player player ) : void

Raise a PlayerListAddition event

RaisePlayerListChangedEvent ( ) : void
RaisePlayerListDeletionEvent ( Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player player ) : void

Raise a PlayerListDeletion event

메소드 상세

AddPlayer() 공개 정적인 메소드

Add a player to the online players list and raise the according events
public static AddPlayer ( Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player player ) : void
player Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player The player to add
리턴 void

GetOnlinePlayerByName() 공개 정적인 메소드

Get an online player by their name
public static GetOnlinePlayerByName ( String name ) : Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player
name String
리턴 Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player

GetOnlinePlayerCount() 공개 정적인 메소드

Get the amount of online players
public static GetOnlinePlayerCount ( ) : int
리턴 int

GetOnlinePlayerNames() 공개 정적인 메소드

Get the online players
public static GetOnlinePlayerNames ( ) : IEnumerable
리턴 IEnumerable

GetOnlinePlayers() 공개 정적인 메소드

Get the online players
public static GetOnlinePlayers ( ) : IEnumerable
리턴 IEnumerable

Initialize() 공개 정적인 메소드

Initialize the PlayerHandler class
public static Initialize ( ) : void
리턴 void

IsPlayerListed() 공개 정적인 메소드

Check if a player is listed in the dictionarry of online players
public static IsPlayerListed ( String name ) : System.Boolean
name String The name of the player to check
리턴 System.Boolean

RemovePlayer() 공개 정적인 메소드

Remove a player from the online players list and raise the according events
public static RemovePlayer ( Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player player ) : void
player Net.Bertware.Bukkitgui2.MinecraftInterop.PlayerHandler.Player The player to remove
리턴 void