mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add 1.8.5 - 1.8.7 as supported versions
+ Improve wording: answer -> respon[d|se]
This commit is contained in:
parent
c957ed0efd
commit
a7f0897f09
3 changed files with 6 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ namespace MinecraftClient
|
||||||
|
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Console Client for MC 1.4.6 to 1.8.4 - v" + Version + " - By ORelio & Contributors");
|
Console.WriteLine("Console Client for MC 1.4.6 to 1.8.7 - v" + Version + " - By ORelio & Contributors");
|
||||||
|
|
||||||
//Basic Input/Output ?
|
//Basic Input/Output ?
|
||||||
if (args.Length >= 1 && args[args.Length - 1] == "BasicIO")
|
if (args.Length >= 1 && args[args.Length - 1] == "BasicIO")
|
||||||
|
|
|
||||||
|
|
@ -670,7 +670,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
{
|
{
|
||||||
string version = "";
|
string version = "";
|
||||||
TcpClient tcp = ProxyHandler.newTcpClient(host, port);
|
TcpClient tcp = ProxyHandler.newTcpClient(host, port);
|
||||||
tcp.ReceiveTimeout = 5000; //MC 1.7.2+ SpigotMC servers won't answer, so we need a reasonable timeout.
|
tcp.ReceiveTimeout = 5000; //MC 1.7.2+ SpigotMC servers won't respond, so we need a reasonable timeout.
|
||||||
byte[] ping = new byte[2] { 0xfe, 0x01 };
|
byte[] ping = new byte[2] { 0xfe, 0x01 };
|
||||||
tcp.Client.Send(ping, SocketFlags.None);
|
tcp.Client.Send(ping, SocketFlags.None);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ namespace MinecraftClient.Protocol
|
||||||
{
|
{
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
else ConsoleIO.WriteLineFormatted("§8Unexpected answer from the server (is that a Minecraft server ?)");
|
else ConsoleIO.WriteLineFormatted("§8Unexpected response from the server (is that a Minecraft server?)");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
@ -118,6 +118,9 @@ namespace MinecraftClient.Protocol
|
||||||
case "1.8.2":
|
case "1.8.2":
|
||||||
case "1.8.3":
|
case "1.8.3":
|
||||||
case "1.8.4":
|
case "1.8.4":
|
||||||
|
case "1.8.5":
|
||||||
|
case "1.8.6":
|
||||||
|
case "1.8.7":
|
||||||
return 47;
|
return 47;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue