Skip to content

Commit 499ebb2

Browse files
committed
Add MatrixShop bStats documentation
1 parent 4b82668 commit 499ebb2

4 files changed

Lines changed: 92 additions & 2 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: bStats 与遥测
3+
description: MatrixShop 当前集成的 bStats 统计项、隐私范围和关闭方式。
4+
sidebar_position: 11
5+
---
6+
7+
# bStats 与遥测
8+
9+
MatrixShop 当前已经集成 `bStats`,用于统计插件的安装量和基础配置分布。
10+
11+
当前插件 id 为:
12+
13+
```text
14+
30502
15+
```
16+
17+
## 当前会上报什么
18+
19+
当前版本只上报配置和模块层面的聚合数据:
20+
21+
- `database_backend`
22+
- `configured_database_backend`
23+
- `enabled_module_count`
24+
- `enabled_modules`
25+
- `systemshop_category_count`
26+
- `systemshop_goods_count`
27+
- `economy_currency_count`
28+
- `economy_currency_modes`
29+
30+
这些图表分别反映:
31+
32+
- 当前实际使用的数据后端
33+
- 配置中声明的数据后端
34+
- 当前启用的模块数量
35+
- 各模块是否启用
36+
- SystemShop 分类数量
37+
- SystemShop goods 仓库数量
38+
- 经济模块里配置的货币数量
39+
- 货币模式分布,例如 `vault``playerpoints``placeholder`
40+
41+
## 当前不会上报什么
42+
43+
当前实现不会通过 bStats 上报以下内容:
44+
45+
- 玩家名
46+
- UUID
47+
- 聊天内容
48+
- 交易记录内容
49+
- 商品具体 NBT 或物品内容
50+
- 数据库连接地址、用户名或密码
51+
- 服务器自定义业务数据
52+
53+
## 如何关闭
54+
55+
`bStats` 的总开关由服务端公共配置控制。首次启动后,通常会在这里生成配置:
56+
57+
```text
58+
plugins/bStats/config.yml
59+
```
60+
61+
关闭方式通常是把其中的:
62+
63+
```yaml
64+
enabled: false
65+
```
66+
67+
然后重启服务端。
68+
69+
## 对部署的影响
70+
71+
源码构建后,MatrixShop 当前会输出带重定位 bStats 的运行产物:
72+
73+
```text
74+
build/libs/MatrixShop-1.2.0-all.jar
75+
```
76+
77+
`org.bstats` 已被重定位到插件私有包名下,避免和其他同样使用 bStats 的插件产生类冲突。

docs/matrixshop/faq.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,11 @@ plugins/MatrixShop/Economy/currency.yml
9292
## SystemShop 为什么没有数据库表
9393

9494
因为当前 SystemShop 是纯配置驱动模块,不依赖 JDBC 运行表。真正大量落表的是拍卖、市场、玩家商店、购物车、箱店和记录系统。
95+
96+
## MatrixShop 会不会发送遥测数据
97+
98+
会。当前版本集成了 `bStats`,但只发送聚合级的配置和模块统计,不发送玩家交易明细或敏感配置。
99+
100+
详细说明见:
101+
102+
- [bStats 与遥测](./bstats-and-telemetry)

docs/matrixshop/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ MatrixShop 是面向生存、经济和市场场景的模块化交易插件。当
6363
6. [经济模块](./economy)
6464
7. [命令与权限](./commands-and-permissions)
6565
8. [数据库与存储](./database-and-storage)
66-
9. [模块总览](./modules-overview)
67-
10. [商店与模块详解](./shop-types)
66+
9. [bStats 与遥测](./bstats-and-telemetry)
67+
10. [模块总览](./modules-overview)
68+
11. [商店与模块详解](./shop-types)
6869

6970
## 发布前建议
7071

docs/matrixshop/quick-start.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ description: 首次部署 MatrixShop、生成默认配置并验证基本指令
1313
4. 按需修改 `module.yml``database.yml``Economy/currency.yml`
1414
5. 重新启动,或使用管理员命令重载。
1515

16+
如果你关心统计或隐私说明,继续看:
17+
18+
- [bStats 与遥测](./bstats-and-telemetry)
19+
1620
如果你正在从 `1.0.0` 升级,请先阅读:
1721

1822
- [1.2.0 发布说明](./release-notes-1-2-0)

0 commit comments

Comments
 (0)