mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-13 15:04:37 +01:00
strictly necessary handlers
This commit is contained in:
@@ -8,9 +8,7 @@ namespace BLHX.Server.Game.Handlers
|
||||
[PacketHandler(Command.Cs11001)]
|
||||
static void ServerTimeHandler(Connection connection, Packet packet)
|
||||
{
|
||||
connection.NotifyPlayerData();
|
||||
connection.NotifyStatisticsInit();
|
||||
connection.NotifyShipData();
|
||||
connection.InitClientData();
|
||||
connection.Send(new Sc11002()
|
||||
{
|
||||
Timestamp = (uint)DateTimeOffset.Now.ToUnixTimeSeconds(),
|
||||
@@ -19,6 +17,18 @@ namespace BLHX.Server.Game.Handlers
|
||||
});
|
||||
}
|
||||
|
||||
[PacketHandler(Command.Cs11603)]
|
||||
static void FetchSecondaryPasswordHandler(Connection connection, Packet packet)
|
||||
{
|
||||
connection.Send(new Sc11604());
|
||||
}
|
||||
|
||||
[PacketHandler(Command.Cs11017)]
|
||||
static void StageDropListHandler(Connection connection, Packet packet)
|
||||
{
|
||||
connection.Send(new Sc11018());
|
||||
}
|
||||
|
||||
[PacketHandler(Command.Cs11401)]
|
||||
static void ChangeChatRoomHandler(Connection connection, Packet packet)
|
||||
{
|
||||
@@ -51,7 +61,10 @@ namespace BLHX.Server.Game.Handlers
|
||||
GmFlag = 1,
|
||||
Rank = 1,
|
||||
GuideIndex = 1,
|
||||
ChatRoomId = 1,
|
||||
RegisterTime = (uint)new DateTimeOffset(connection.player.CreatedAt).ToUnixTimeSeconds(),
|
||||
ShipCount = (uint)connection.player.Ships.Count,
|
||||
CommanderBagMax = 40,
|
||||
Display = connection.player.DisplayInfo,
|
||||
Appreciation = new()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user