mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 09:03:58 +00:00
Unlock GM menu
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user