From 428d67aa3df4e1c5be0d4145c8d8026e4f6a8890 Mon Sep 17 00:00:00 2001 From: yuhangle <893033655@qq.com> Date: Sat, 30 Nov 2024 11:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E9=A1=B5=E9=9D=A2=E5=B0=8F=E4=BA=8E=E4=B8=80?= =?UTF-8?q?=E9=A1=B5=E6=97=B6=E6=97=A0=E6=B3=95=E5=BC=B9=E7=AA=97=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endstone_tianyan/tianyan_plugin.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/endstone_tianyan/tianyan_plugin.py b/src/endstone_tianyan/tianyan_plugin.py index 5c960de..b778e91 100644 --- a/src/endstone_tianyan/tianyan_plugin.py +++ b/src/endstone_tianyan/tianyan_plugin.py @@ -313,7 +313,7 @@ def on_load(self) -> None: self.logger.info("on_load is called!") def on_enable(self) -> None: - self.logger.info(f"{ColorFormat.YELLOW}天眼插件已启用 版本V1.1.2 配置文件位于plugins/tianyan_data/config.json") + self.logger.info(f"{ColorFormat.YELLOW}天眼插件已启用 版本V1.1.2.1 配置文件位于plugins/tianyan_data/config.json") self.logger.info(f"{ColorFormat.YELLOW}其余数据文件位于plugins/tianyan_data/") self.logger.info(f"{ColorFormat.YELLOW}项目更新地址https://github.com/yuhangle/Endstone_TianyanPlugin") # 监听事件 @@ -454,6 +454,13 @@ def on_click(sender): ) ) show(sender) + else: + self.server.get_player(sender.name).send_form( + ActionForm( + title=f'{ColorFormat.BLUE}§l§o半径{r}格{times}小时内的查询记录', + content=output_message, + ) + ) elif command.name == "tyban": if len(args) == 0: @@ -816,6 +823,13 @@ def on_click(sender): ) ) show(sender) + else: + self.server.get_player(sender.name).send_form( + ActionForm( + title=f'{ColorFormat.BLUE}§l§o{keyword}在{time}小时内的记录', + content=output_message, + ) + ) # 玩家名搜索 if searchtype == "player":