mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-29 13:04:59 +00:00
1.20.6 - Not working yet
This commit is contained in:
parent
8270a2d9a3
commit
08c5c15557
17 changed files with 654 additions and 81 deletions
|
|
@ -118,6 +118,9 @@ namespace MinecraftClient
|
|||
|
||||
// ChatBot OnNetworkPacket event
|
||||
private bool networkPacketCaptureEnabled = false;
|
||||
|
||||
// Cookies
|
||||
private Dictionary<string, byte[]> Cookies { get; set; } = new();
|
||||
|
||||
public int GetServerPort() { return port; }
|
||||
public string GetServerHost() { return host; }
|
||||
|
|
@ -143,6 +146,8 @@ namespace MinecraftClient
|
|||
public ILogger GetLogger() { return Log; }
|
||||
public int GetPlayerEntityID() { return playerEntityID; }
|
||||
public List<ChatBot> GetLoadedChatBots() { return new List<ChatBot>(bots); }
|
||||
public void GetCookie(string key, out byte[]? data) => Cookies.TryGetValue(key, out data);
|
||||
public void SetCookie(string key, byte[] data) => Cookies[key] = data;
|
||||
|
||||
readonly TcpClient client;
|
||||
readonly IMinecraftCom handler;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue