feat: 添加服务器IP打印和解除角色创建限制功能

在SocketBase.nut中添加打印本服务器IP的功能,便于调试
在A.nut中添加解除角色创建限制的回调函数
This commit is contained in:
2026-04-22 10:45:39 +08:00
parent be156a2559
commit ef99801739
2 changed files with 7 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ function OnGatewaySocketConnect() {
//获得本服务器的IP
GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
getroottable().Dps_Self_Ip <- Jso.myip;
print("本服务器IP: " + Jso.myip);
print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m");
});