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.
Показать файл Открыть проект

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