From a95197a7b53e78f70f8d09c3ee44eaead1e873e5 Mon Sep 17 00:00:00 2001 From: rfi Date: Thu, 18 Jan 2024 05:55:16 +0700 Subject: [PATCH] Chat cooldown + new version config --- AscNet.GameServer/Handlers/ChatModule.cs | 3 ++- Resources/Configs/version_config.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AscNet.GameServer/Handlers/ChatModule.cs b/AscNet.GameServer/Handlers/ChatModule.cs index b4ec7c1b..7c0b78e5 100644 --- a/AscNet.GameServer/Handlers/ChatModule.cs +++ b/AscNet.GameServer/Handlers/ChatModule.cs @@ -170,6 +170,7 @@ namespace AscNet.GameServer.Handlers } cmd?.Execute(); + notifyWorldChat.ChatMessages.Add(MakeLuciaMessage("Command executed!")); } catch (CommandMessageCallbackException ex) { @@ -186,7 +187,7 @@ namespace AscNet.GameServer.Handlers } session.SendPush(notifyWorldChat); - session.SendResponse(new SendChatResponse() { Code = 0, ChatData = request.ChatData, RefreshTime = DateTimeOffset.Now.ToUnixTimeSeconds() }, packet.Id); + session.SendResponse(new SendChatResponse() { Code = 0, ChatData = request.ChatData, RefreshTime = DateTimeOffset.Now.ToUnixTimeSeconds() - 10 }, packet.Id); } [RequestPacketHandler("SelectChatChannelRequest")] diff --git a/Resources/Configs/version_config.json b/Resources/Configs/version_config.json index b374f5d0..60dbd3d9 100644 --- a/Resources/Configs/version_config.json +++ b/Resources/Configs/version_config.json @@ -14,10 +14,10 @@ "LaunchIndexSha1": "def7cf0ae2dbc6a31c5f85632f1d82d1f1d6cbfa" }, "1.32.0": { - "DocumentVersion": "1.32.6", + "DocumentVersion": "1.32.7", "LaunchModuleVersion": "1.32.0", "IndexMd5": "c5d4baac85a6e37b8109ea43dc045d31", - "IndexSha1": "2da53f02debddd597e2e69d04849dd18e9b87d37", + "IndexSha1": "0bd055ef185b199c476ee7a730baa6108393384a", "LaunchIndexSha1": "def7cf0ae2dbc6a31c5f85632f1d82d1f1d6cbfa" }, "2.9.0": {