mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Update short to ushort
This commit is contained in:
parent
466ad07b71
commit
284d335b2a
1 changed files with 3 additions and 3 deletions
|
|
@ -53,7 +53,7 @@ namespace MinecraftClient
|
||||||
/// <param name="port">The server port to use</param>
|
/// <param name="port">The server port to use</param>
|
||||||
/// <param name="protocolversion">Minecraft protocol version to use</param>
|
/// <param name="protocolversion">Minecraft protocol version to use</param>
|
||||||
|
|
||||||
public McTcpClient(string username, string uuid, string sessionID, int protocolversion, string server_ip, short port)
|
public McTcpClient(string username, string uuid, string sessionID, int protocolversion, string server_ip, ushort port)
|
||||||
{
|
{
|
||||||
StartClient(username, uuid, sessionID, server_ip, port, protocolversion, false, "");
|
StartClient(username, uuid, sessionID, server_ip, port, protocolversion, false, "");
|
||||||
}
|
}
|
||||||
|
|
@ -69,7 +69,7 @@ namespace MinecraftClient
|
||||||
/// <param name="protocolversion">Minecraft protocol version to use</param>
|
/// <param name="protocolversion">Minecraft protocol version to use</param>
|
||||||
/// <param name="command">The text or command to send.</param>
|
/// <param name="command">The text or command to send.</param>
|
||||||
|
|
||||||
public McTcpClient(string username, string uuid, string sessionID, string server_ip, short port, int protocolversion, string command)
|
public McTcpClient(string username, string uuid, string sessionID, string server_ip, ushort port, int protocolversion, string command)
|
||||||
{
|
{
|
||||||
StartClient(username, uuid, sessionID, server_ip, port, protocolversion, true, command);
|
StartClient(username, uuid, sessionID, server_ip, port, protocolversion, true, command);
|
||||||
}
|
}
|
||||||
|
|
@ -86,7 +86,7 @@ namespace MinecraftClient
|
||||||
/// <param name="singlecommand">If set to true, the client will send a single command and then disconnect from the server</param>
|
/// <param name="singlecommand">If set to true, the client will send a single command and then disconnect from the server</param>
|
||||||
/// <param name="command">The text or command to send. Will only be sent if singlecommand is set to true.</param>
|
/// <param name="command">The text or command to send. Will only be sent if singlecommand is set to true.</param>
|
||||||
|
|
||||||
private void StartClient(string user, string uuid, string sessionID, string server_ip, short port, int protocolversion, bool singlecommand, string command)
|
private void StartClient(string user, string uuid, string sessionID, string server_ip, ushort port, int protocolversion, bool singlecommand, string command)
|
||||||
{
|
{
|
||||||
this.sessionid = sessionID;
|
this.sessionid = sessionID;
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue