mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
/list command improvements
Coding style, Guid, interface, Fallback Command
This commit is contained in:
parent
5d1aee46c2
commit
f82041288d
4 changed files with 72 additions and 49 deletions
|
|
@ -21,10 +21,7 @@ namespace MinecraftClient.Protocol
|
|||
string getUsername();
|
||||
string getUserUUID();
|
||||
string getSessionID();
|
||||
|
||||
void addPlayer(string uuid, string name);
|
||||
void removePlayer(string uuid);
|
||||
HashSet<string> getPlayers();
|
||||
string[] getOnlinePlayers();
|
||||
|
||||
/// <summary>
|
||||
/// This method is called when the protocol handler receives a chat message
|
||||
|
|
@ -32,6 +29,21 @@ namespace MinecraftClient.Protocol
|
|||
|
||||
void OnTextReceived(string text);
|
||||
|
||||
/// <summary>
|
||||
/// This method is called when a new player joins the game
|
||||
/// </summary>
|
||||
/// <param name="uuid">UUID of the player</param>
|
||||
/// <param name="name">Name of the player</param>
|
||||
|
||||
void OnPlayerJoin(Guid uuid, string name);
|
||||
|
||||
/// <summary>
|
||||
/// This method is called when a player has left the game
|
||||
/// </summary>
|
||||
/// <param name="uuid">UUID of the player</param>
|
||||
|
||||
void OnPlayerLeave(Guid uuid);
|
||||
|
||||
/// <summary>
|
||||
/// This method is called when the connection has been lost
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue