Skip to content

Commit 95762ae

Browse files
committed
Add MatrixShop 1.5.0 tax docs
1 parent a245dce commit 95762ae

File tree

13 files changed

+209
-13
lines changed

13 files changed

+209
-13
lines changed

docs/matrixshop/configuration/bstats-and-telemetry.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ enabled: false
7676
源码构建后,MatrixShop 当前会输出带重定位 bStats 的运行产物:
7777
7878
```text
79-
build/libs/MatrixShop-1.4.0-all.jar
79+
build/libs/MatrixShop-1.5.0-all.jar
8080
```
8181

8282
`org.bstats` 已被重定位到插件私有包名下,避免和其他同样使用 bStats 的插件产生类冲突。

docs/matrixshop/getting-started/quick-start.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ sidebar_position: 1
2121

2222
如果你正在从 `1.0.0` 升级,请先阅读:
2323

24+
- [1.5.0 发布说明](./release-notes-1-5-0)
2425
- [1.4.0 发布说明](./release-notes-1-4-0)
2526
- [1.3.0 发布说明](./release-notes-1-3-0)
2627
- [1.2.0 发布说明](./release-notes-1-2-0)

docs/matrixshop/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ MatrixShop 是面向生存、经济和市场场景的模块化交易插件。当
1010

1111
当前最新版本入口:
1212

13-
- [1.4.0 发布说明](./release-notes-1-4-0)
13+
- [1.5.0 发布说明](./release-notes-1-5-0)
1414
- [更新日志总览](./release-notes)
1515

1616
## 当前版本状态
@@ -69,7 +69,7 @@ MatrixShop 是面向生存、经济和市场场景的模块化交易插件。当
6969
如果你第一次接触 MatrixShop,推荐顺序是:
7070

7171
1. [快速开始](./quick-start)
72-
2. [1.4.0 发布说明](./release-notes-1-4-0)
72+
2. [1.5.0 发布说明](./release-notes-1-5-0)
7373
3. [配置结构](./configuration-structure)
7474
4. [经济模块](./economy)
7575
5. [命令与权限](./commands-and-permissions)
@@ -105,6 +105,7 @@ MatrixShop 是面向生存、经济和市场场景的模块化交易插件。当
105105

106106
### 更新日志
107107

108+
- [1.5.0 发布说明](./release-notes-1-5-0)
108109
- [1.4.0 发布说明](./release-notes-1-4-0)
109110
- [1.3.0 发布说明](./release-notes-1-3-0)
110111
- [1.2.0 发布说明](./release-notes-1-2-0)
@@ -121,6 +122,7 @@ MatrixShop 是面向生存、经济和市场场景的模块化交易插件。当
121122

122123
如果你是从 `1.0.0` 升级,请先看:
123124

125+
- [1.5.0 发布说明](./release-notes-1-5-0)
124126
- [1.4.0 发布说明](./release-notes-1-4-0)
125127
- [1.3.0 发布说明](./release-notes-1-3-0)
126128
- [1.2.0 发布说明](./release-notes-1-2-0)

docs/matrixshop/modules/interaction-modules.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ sidebar_position: 3
4242
- `Entry.Open-GUI-On`
4343
- `Entry.Direct-Trade-On`
4444
- `Stock.Double-Chest-Mode`
45+
- `Trade.Tax`
4546

4647
### 常用命令
4748

@@ -74,6 +75,7 @@ sidebar_position: 3
7475
- `Options.Session.Max-Distance`
7576
- `Options.Session.Same-World-Only`
7677
- `Options.Trade.Allow-Items / Allow-Money / Allow-Exp`
78+
- `Options.Trade.Tax`
7779

7880
### 常用命令
7981

docs/matrixshop/modules/player-economy-modules.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ sidebar_position: 2
2727
- `Search.enable`
2828
- `Search.condition`
2929
- `Currency.Key`
30+
- `Listing.Tax`
3031

3132
默认情况下,`PlayerShop` 的货币 key 优先级是:
3233

@@ -59,7 +60,7 @@ sidebar_position: 2
5960
`GlobalMarket/settings.yml` 当前默认使用:
6061

6162
- `Listing.Expire-Hours`
62-
- `Listing.Tax-Percent`
63+
- `Listing.Tax`
6364
- `Currency.Key`
6465

6566
`GlobalMarket` 的货币 key 优先级是:
@@ -110,6 +111,7 @@ sidebar_position: 2
110111
- 荷式拍卖
111112
- 一口价 / 终价
112113
- 押金与税
114+
- 条件税规则与 Kether 判断
113115
- 抢拍保护
114116
- 主人取消限制
115117

docs/matrixshop/release-notes/index.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ sidebar_position: 0
1111

1212
如果你准备升级,建议按从新到旧的顺序阅读:
1313

14-
1. [1.4.0 发布说明](./release-notes-1-4-0)
15-
2. [1.3.0 发布说明](./release-notes-1-3-0)
16-
3. [1.2.0 发布说明](./release-notes-1-2-0)
17-
4. [1.1.1 发布说明](./release-notes-1-1-1)
18-
5. [1.1.0 发布说明](./release-notes-1-1-0)
14+
1. [1.5.0 发布说明](./release-notes-1-5-0)
15+
2. [1.4.0 发布说明](./release-notes-1-4-0)
16+
3. [1.3.0 发布说明](./release-notes-1-3-0)
17+
4. [1.2.0 发布说明](./release-notes-1-2-0)
18+
5. [1.1.1 发布说明](./release-notes-1-1-1)
19+
6. [1.1.0 发布说明](./release-notes-1-1-0)
1920

2021
## 阅读建议
2122

22-
- 想看当前最新功能和验证结果:先看 [1.4.0 发布说明](./release-notes-1-4-0)
23+
- 想看当前最新功能和验证结果:先看 [1.5.0 发布说明](./release-notes-1-5-0)
24+
- 想看多模块条件税系统:看 [1.5.0 发布说明](./release-notes-1-5-0)
2325
- 想看 `SystemShop` 折扣系统、价格对象和购物车锁价行为:看 [1.4.0 发布说明](./release-notes-1-4-0)
2426
- 想回看 `1.1.x` 的收口和修复:看 [1.1.1](./release-notes-1-1-1)[1.1.0](./release-notes-1-1-0)
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
title: 1.5.0 发布说明
3+
description: MatrixShop 1.5.0 的多模块条件税系统、测试结果与升级说明。
4+
slug: /matrixshop/release-notes-1-5-0
5+
sidebar_position: 1
6+
---
7+
8+
# MatrixShop 1.5.0 发布说明
9+
10+
发布时间:`2026-04-03`
11+
12+
## 版本定位
13+
14+
`1.5.0` 是围绕经济结算链的一次功能版本更新。
15+
16+
这一版把税率系统从少数模块的固定值,扩展成了跨模块统一的“条件税规则”。
17+
18+
## 本版本重点
19+
20+
### 多模块条件税系统
21+
22+
以下模块现在支持条件税配置:
23+
24+
- `PlayerShop`
25+
- `GlobalMarket`
26+
- `Auction`
27+
- `Transaction`
28+
- `ChestShop`
29+
30+
### 税规则结构
31+
32+
当前税配置支持:
33+
34+
```yaml
35+
Tax:
36+
Enabled: true
37+
Mode: percent
38+
Value: 3.0
39+
Rules:
40+
vip:
41+
Enabled: true
42+
Priority: 100
43+
Mode: percent
44+
Value: 1.0
45+
Condition:
46+
- "perm 'group.vip'"
47+
```
48+
49+
支持字段:
50+
51+
- `Enabled`
52+
- `Mode`
53+
- `Value`
54+
- `Rules.<id>.Enabled`
55+
- `Rules.<id>.Priority`
56+
- `Rules.<id>.Mode`
57+
- `Rules.<id>.Value`
58+
- `Rules.<id>.Condition`
59+
60+
当前行为:
61+
62+
- 多条税规则按 `Priority` 选择一条命中的规则
63+
- 命中的规则会覆盖默认税配置
64+
- `Condition` 使用 Kether
65+
66+
### 各模块落点
67+
68+
- `PlayerShop`
69+
- `PlayerShop/settings.yml -> Listing.Tax`
70+
- `GlobalMarket`
71+
- `GlobalMarket/settings.yml -> Listing.Tax`
72+
- 兼容旧配置 `Listing.Tax-Percent`
73+
- `Auction`
74+
- `Auction/settings.yml -> Options.Listing.Tax`
75+
- `Transaction`
76+
- `Transaction/settings.yml -> Options.Trade.Tax`
77+
- 每个方向的金钱报价分别计算税
78+
- `ChestShop`
79+
- `ChestShop/settings.yml -> Trade.Tax`
80+
- 玩家购买时从店主收入中扣税
81+
- 玩家出售时从玩家收入中扣税
82+
83+
## 升级说明
84+
85+
这一版不要求你立刻改旧配置。
86+
87+
兼容策略:
88+
89+
- `GlobalMarket` 旧的 `Listing.Tax-Percent` 仍可读取
90+
- `Auction` 旧的 `Options.Listing.Tax.Enabled / Mode / Value` 继续有效
91+
- 新条件税规则是在原有税配置上扩展 `Rules`
92+
93+
## 验证
94+
95+
本版本发布前已完成:
96+
97+
- `./gradlew build`
98+
- docs site `npm run build`
99+
- `paper-1.21.8` smoke boot
100+
- `paper-1.21.11` smoke boot
101+
- 在 `paper-1.21.11` 测试服中,为以下模块写入带 Kether `Condition` 的税规则配置并完成启动验证:
102+
- `PlayerShop`
103+
- `GlobalMarket`
104+
- `Auction`
105+
- `Transaction`
106+
- `ChestShop`
107+
108+
验证结果为:插件可正常启动,未出现新的税规则相关启动错误。
109+
110+
## 相关链接
111+
112+
- [GitHub Releases](https://github.com/54895y/MatrixShop/releases)
113+
- [1.5.0 GitHub Release](https://github.com/54895y/MatrixShop/releases/tag/v1.5.0)
114+
- [CHANGELOG](https://github.com/54895y/MatrixShop/blob/main/CHANGELOG.md)
115+
- [1.4.0 发布说明](./release-notes-1-4-0)

docs/matrixshop/shop-types/auction.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ Options:
6666
Enabled: true
6767
Mode: percent
6868
Value: 3
69+
Rules:
70+
vip:
71+
Enabled: true
72+
Priority: 100
73+
Mode: percent
74+
Value: 1
75+
Condition:
76+
- "perm 'group.vip'"
6977
Snipe-Protection:
7078
Enabled: true
7179
Trigger-Seconds: 30
@@ -134,6 +142,7 @@ Options:
134142
| `Tax.Enabled` | 是否启用交易税。 |
135143
| `Tax.Mode` | 税率模式。 |
136144
| `Tax.Value` | 税值。 |
145+
| `Tax.Rules.*` | 条件税规则,命中后覆盖默认税配置。 |
137146
| `Snipe-Protection.Enabled` | 是否启用尾秒保护。 |
138147
| `Trigger-Seconds` | 剩余时间少于多少秒时触发保护。 |
139148
| `Extend-Seconds` | 每次触发后延长多少秒。 |
@@ -142,6 +151,14 @@ Options:
142151
| `Cancel.Owner.Deny-If-Has-Bid` | 已有人出价时是否禁止取消。 |
143152
| `Record.Write-On-*` | 各类行为是否写入记录系统。 |
144153

154+
`Tax.Rules.*` 当前支持:
155+
156+
- `Enabled`
157+
- `Priority`
158+
- `Mode`
159+
- `Value`
160+
- `Condition`
161+
145162
## `Auction/shops/default.yml`
146163

147164
```yaml

docs/matrixshop/shop-types/chest-shop.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Entry:
4141
Direct-Trade-On: []
4242
Stock:
4343
Double-Chest-Mode: expand_only
44+
Trade:
45+
Tax:
46+
Enabled: false
47+
Mode: percent
48+
Value: 3.0
4449
Currency:
4550
Key: vault
4651
```
@@ -57,6 +62,7 @@ Currency:
5762
| `Entry.Open-GUI-On` | 哪些交互动作会直接打开 GUI。 |
5863
| `Entry.Direct-Trade-On` | 哪些交互动作会走直接交易。默认是空列表。 |
5964
| `Stock.Double-Chest-Mode` | 双箱库存处理方式,示例是 `expand_only`。 |
65+
| `Trade.Tax` | 箱子商店税配置。玩家购买时税从店主收入中扣除,玩家出售时税从玩家收入中扣除。 |
6066
| `Currency.Key` | 箱子商店统一使用的货币 key。 |
6167

6268
## `ChestShop/signs.yml`

docs/matrixshop/shop-types/global-market.mdx

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,18 @@ Bindings:
3434

3535
Listing:
3636
Expire-Hours: 72
37-
Tax-Percent: 3.0
37+
Tax:
38+
Enabled: true
39+
Mode: percent
40+
Value: 3.0
41+
Rules:
42+
vip:
43+
Enabled: true
44+
Priority: 100
45+
Mode: percent
46+
Value: 1.0
47+
Condition:
48+
- "perm 'group.vip'"
3849
```
3950
4051
字段解释:
@@ -47,7 +58,18 @@ Listing:
4758
| `Priority` | `market`、`gm` 的命令优先级。 |
4859
| `Condition` | 默认权限节点。 |
4960
| `Listing.Expire-Hours` | 市场上架物品的默认过期时长。 |
50-
| `Listing.Tax-Percent` | 市场成交税率。 |
61+
| `Listing.Tax.Enabled` | 是否启用市场成交税。 |
62+
| `Listing.Tax.Mode` | 税计算方式,当前支持 `percent` / `fixed`。 |
63+
| `Listing.Tax.Value` | 默认税值。 |
64+
| `Listing.Tax.Rules.*` | 条件税规则,按优先级选中一条命中规则。 |
65+
66+
条件税规则支持:
67+
68+
- `Enabled`
69+
- `Priority`
70+
- `Mode`
71+
- `Value`
72+
- `Condition`
5173

5274
## `GlobalMarket/shops/default.yml`
5375

@@ -134,6 +156,6 @@ icons:
134156
## 使用建议
135157

136158
- 想改过期时间:改 `Listing.Expire-Hours`。
137-
- 想改全服税率:改 `Listing.Tax-Percent`。
159+
- 想改全服税率:改 `Listing.Tax`。
138160
- 想隐藏购物车按钮:删掉 `layout` 里的 `C` 并移除 `icons.C`。
139161
- 想改独立命令:改 `Bindings.Commands.Bindings` 和 `Register`。

0 commit comments

Comments
 (0)