Skip to content

Commit 77293da

Browse files
feat: 更新版本号至 0.1.4,并优化遥测日志输出
1 parent 59379d7 commit 77293da

7 files changed

Lines changed: 28 additions & 15 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
![EndStone-EasyLuckyPillar](https://socialify.git.ci/MengHanLOVE1027/endstone-easyluckypillar/image?custom_language=Python&description=1&font=Inter&forks=1&issues=1&language=1&logo=https://zh.minecraft.wiki/images/Bedrock_JE2_BE2.png?13f82&name=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Auto)
3+
![EndStone-EasyLuckyPillar](https://socialify.git.ci/MengHanLOVE1027/endstone-easyluckypillar/image?custom_language=Python&description=1&font=Inter&forks=1&issues=1&language=1&logo=https://zh.minecraft.wiki/images/Bedrock_JE2_BE2.png&name=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Auto)
44

55
<h3>EndStone-EasyLuckyPillar</h3>
66

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
![EndStone-EasyLuckyPillar](https://socialify.git.ci/MengHanLOVE1027/endstone-easyluckypillar/image?custom_language=Python&description=1&font=Inter&forks=1&issues=1&language=1&logo=https://zh.minecraft.wiki/images/Bedrock_JE2_BE2.png?13f82&name=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Auto)
3+
![EndStone-EasyLuckyPillar](https://socialify.git.ci/MengHanLOVE1027/endstone-easyluckypillar/image?custom_language=Python&description=1&font=Inter&forks=1&issues=1&language=1&logo=https://zh.minecraft.wiki/images/Bedrock_JE2_BE2.png&name=1&owner=1&pattern=Plus&pulls=1&stargazers=1&theme=Auto)
44

55
<h3>EndStone-EasyLuckyPillar</h3>
66

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "endstone-easyluckypillar"
7-
version = "0.1.3"
7+
version = "0.1.4"
88
authors = [
99
{ name = "MengHanLOVE", email = "2193438288@qq.com" },
1010
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="endstone-easyluckypillar",
8-
version="0.1.3",
8+
version="0.1.4",
99
author="MengHanLOVE",
1010
url='https://github.com/MengHanLOVE1027',
1111
author_email="2193438288@qq.com",

src/endstone_easyluckypillar/bstats.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,12 @@ def _submit_data(self):
266266

267267
if response.status_code == 200:
268268
bstats_logger.info("遥测数据上报成功!")
269-
bstats_logger.info(f"响应内容: {response.text if response.text else '(空)'}")
269+
if self.config.log_sent_data_enabled:
270+
bstats_logger.info(f"响应内容: {response.text if response.text else '(空)'}")
270271
else:
271272
bstats_logger.warning(f"上报失败,状态码: {response.status_code}")
272-
bstats_logger.warning(f"返回结果: {response.text if response.text else '(空)'}")
273+
if self.config.log_sent_data_enabled:
274+
bstats_logger.warning(f"返回结果: {response.text if response.text else '(空)'}")
273275

274276
except Exception as e:
275277
bstats_logger.error(f"网络请求异常: {e}")
@@ -312,9 +314,10 @@ def start(self):
312314
# 输出启动日志
313315
bstats_logger.info(f"{self.plugin_name} 遥测模块已启动。")
314316
bstats_logger.info(f"首次数据将在 30 秒后发送,之后每 30 分钟发送一次。")
315-
bstats_logger.info(f"插件ID: {self.service_id}, 插件版本: {self.plugin_version}")
316-
bstats_logger.info(f"遥测状态: {'已启用' if self.config.enabled else '已禁用'}")
317-
bstats_logger.info(f"调试模式: {'已启用' if self.config.log_sent_data_enabled else '已禁用'}")
317+
if self.config.log_sent_data_enabled:
318+
bstats_logger.info(f"插件ID: {self.service_id}, 插件版本: {self.plugin_version}")
319+
bstats_logger.info(f"遥测状态: {'已启用' if self.config.enabled else '已禁用'}")
320+
bstats_logger.info(f"调试模式: {'已启用' if self.config.log_sent_data_enabled else '已禁用'}")
318321

319322
def shutdown(self):
320323
"""关闭 bStats 遥测"""

src/endstone_easyluckypillar/easyluckypillar_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class GameState(Enum):
3232
plugin_name = "EasyLuckyPillar"
3333
plugin_name_smallest = "easyluckypillar"
3434
plugin_description = "一个基于 EndStone 的幸运之柱小游戏插件 / A Lucky Pillar mini-game plugin based on EndStone."
35-
plugin_version = "0.1.3"
35+
plugin_version = "0.1.4"
3636
plugin_author = ["梦涵LOVE"]
3737
plugin_license = "AGPL-3.0"
3838
plugin_github_link = "https://github.com/MengHanLOVE1027/endstone-easyluckypillar"

update_versions.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
{
2-
"version": "0.1.3",
3-
"download_url": "https://github.com/MengHanLOVE1027/endstone-easyluckypillar/releases/download/v0.1.3/endstone_easyluckypillar-0.1.3-py3-none-any.whl",
4-
"update_content": "更新版本号至 0.1.3,并适配EasyCheckUpdate",
5-
"author": "梦涵LOVE",
6-
"update_time": "2026-03-01 01:19:30"
2+
"latest_version": "0.1.4",
3+
"versions": {
4+
"0.1.4": {
5+
"download_url": "https://github.com/MengHanLOVE1027/endstone-easycheckupdate/releases/download/v0.1.2/endstone_easycheckupdate-0.1.2-py3-none-any.whl",
6+
"update_content": "更新版本号至 0.1.4,并优化遥测日志输出",
7+
"author": "梦涵LOVE",
8+
"update_time": "2026-03-01 11:37:30"
9+
},
10+
"0.1.3": {
11+
"download_url": "https://github.com/MengHanLOVE1027/endstone-easyluckypillar/releases/download/v0.1.3/endstone_easyluckypillar-0.1.3-py3-none-any.whl",
12+
"update_content": "更新版本号至 0.1.3,并适配EasyCheckUpdate",
13+
"author": "梦涵LOVE",
14+
"update_time": "2026-03-01 01:19:30"
15+
}
16+
}
717
}

0 commit comments

Comments
 (0)