From f8799ba8937474fa8c0dbcd20c792ec7201389b8 Mon Sep 17 00:00:00 2001 From: lenheart Date: Wed, 10 Dec 2025 20:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E4=B8=BA=E6=9C=89java?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=97=B6=E6=89=8D=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _DPS_/_Core/main.nut | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/_DPS_/_Core/main.nut b/_DPS_/_Core/main.nut index 883d878..3f77940 100644 --- a/_DPS_/_Core/main.nut +++ b/_DPS_/_Core/main.nut @@ -1,14 +1,19 @@ getroottable().DebugModelFlag <- false; //初始化插件 function InitPluginInfo() { - Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg"); - Sq_CreatSocketConnect("127.0.0.1", "65109"); + + try { + local Io = IO("/java_plugin/Restart", "r"); + Io.Close(); + Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg"); + Sq_CreatSocketConnect("127.0.0.1", "65109"); + } catch (exception) { + } + // Sq_CreatSocketConnect("49.234.27.222", "65109"); } function main() { InitPluginInfo(); -} - - +} \ No newline at end of file