Skip to content

Commit

Permalink
修复了查询输出页面小于一页时无法弹窗的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhangle committed Nov 30, 2024
1 parent 1e5c15e commit 428d67a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/endstone_tianyan/tianyan_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
# 监听事件
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 428d67a

Please sign in to comment.