mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add support for creating replay mod capture files (#1246)
* Add test replay handler * Fix incorrect built raw packet * Fix incorrect built raw packet * Add filter * Add not working zip lib * Add dotNetZip lib and complete basic function * Update ReplayHandler.cs * Complete Replay handler Without client player handling * Complete replay mod - New ChatBot OnNetworkPacket event * Add auto-backup and command for Replay Mod * Add ReplayMod description to readme * Small naming changes, fix compile error on .NET4.0 * ReplayHandler slight optimizations Use Path.Combine to automatically use Windows '\' or Linux '/' Move re-usable common parts outside the Replay handler Small optimizations in building JSON strings Co-authored-by: ORelio <oreliogitantispam.l0gin@spamgourmet.com>
This commit is contained in:
parent
cd1badb9d6
commit
7e20e409a8
47 changed files with 32732 additions and 21 deletions
|
|
@ -257,6 +257,52 @@ namespace MinecraftClient.Protocol
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a network protocol version number to human-readable Minecraft version number
|
||||
/// </summary>
|
||||
/// <remarks>Some Minecraft versions share the same protocol number. In that case, the lowest version for that protocol is returned.</remarks>
|
||||
/// <param name="protocol">The Minecraft protocol version number</param>
|
||||
/// <returns>The 1.X.X version number, or 0.0 if could not determine protocol version</returns>
|
||||
public static string ProtocolVersion2MCVer(int protocol)
|
||||
{
|
||||
switch (protocol)
|
||||
{
|
||||
case 51: return "1.4.6";
|
||||
case 60: return "1.5.1";
|
||||
case 62: return "1.5.2";
|
||||
case 72: return "1.6";
|
||||
case 73: return "1.6.1";
|
||||
case 4: return "1.7.2";
|
||||
case 5: return "1.7.6";
|
||||
case 47: return "1.8";
|
||||
case 107: return "1.9";
|
||||
case 108: return "1.9.1";
|
||||
case 109: return "1.9.2";
|
||||
case 110: return "1.9.3";
|
||||
case 210: return "1.10";
|
||||
case 315: return "1.11";
|
||||
case 316: return "1.11.1";
|
||||
case 335: return "1.12";
|
||||
case 338: return "1.12.1";
|
||||
case 340: return "1.12.2";
|
||||
case 393: return "1.13";
|
||||
case 401: return "1.13.1";
|
||||
case 404: return "1.13.2";
|
||||
case 477: return "1.14";
|
||||
case 480: return "1.14.1";
|
||||
case 485: return "1.14.2";
|
||||
case 490: return "1.14.3";
|
||||
case 498: return "1.14.4";
|
||||
case 573: return "1.15";
|
||||
case 575: return "1.15.1";
|
||||
case 578: return "1.15.2";
|
||||
case 735: return "1.16";
|
||||
case 736: return "1.16.1";
|
||||
case 751: return "1.16.2";
|
||||
default: return "0.0";
|
||||
}
|
||||
}
|
||||
|
||||
public enum LoginResult { OtherError, ServiceUnavailable, SSLError, Success, WrongPassword, AccountMigrated, NotPremium, LoginRequired, InvalidToken, InvalidResponse, NullError };
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue