Unlock GM menu

This commit is contained in:
Kei-Luna
2026-04-29 16:57:11 +09:00
parent e8bb77e90e
commit 2bf7554c53
3 changed files with 13 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ public class HandlerReqLogin : Handler
await connection.Player.OnEnterGame();
connection.Player.Connection = connection;
await connection.SendPacket(new PacketRspLogin(connection.Player!));
await SendDebugLoginState(connection);
await connection.Player.OnHeartBeat();
await connection.SendPacket(new PacketNtfUpdateFriend(connection.Player!));
@@ -118,4 +119,14 @@ public class HandlerReqLogin : Handler
});
}
}
private static async Task SendDebugLoginState(Connection connection)
{
var response = new JsonObject
{
["IsDebug"] = ConfigManager.Config.ServerOption.EnableGmMenu
};
await CallGSRouter.SendScript(connection, "gm.notifylogin", response.ToJsonString());
}
}