mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
https://github.com/ORelio/Minecraft-Console-Client/issues/729: allow to use GetServerPort/GetServerHost/GetUsername/GetUserUUID in MCC scripts
This commit is contained in:
parent
877e50579d
commit
f209130464
1 changed files with 36 additions and 0 deletions
|
|
@ -668,6 +668,42 @@ namespace MinecraftClient
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the Server Port where the client is connected to
|
||||
/// </summary>
|
||||
/// <returns>Server Port where the client is connected to</returns>
|
||||
protected int GetServerPort()
|
||||
{
|
||||
return Handler.GetServerPort();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the Server Host where the client is connected to
|
||||
/// </summary>
|
||||
/// <returns>Server Host where the client is connected to</returns>
|
||||
protected string GetServerHost()
|
||||
{
|
||||
return Handler.GetServerHost();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the Username of the current account
|
||||
/// </summary>
|
||||
/// <returns>Username of the current account</returns>
|
||||
protected string GetUsername()
|
||||
{
|
||||
return Handler.GetUsername();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the UserUUID of the current account
|
||||
/// </summary>
|
||||
/// <returns>UserUUID of the current account</returns>
|
||||
protected string GetUserUUID()
|
||||
{
|
||||
return Handler.GetUserUUID();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the list of currently online players
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue