Skip to content

Commit 20d9366

Browse files
Sync leaf config description (#47)
* Init * Complete en version * Complete en & zh version * Sync changes to German --------- Co-authored-by: Pascalpex <pascalpex@gmail.com>
1 parent 9eb6297 commit 20d9366

6 files changed

Lines changed: 90 additions & 0 deletions

File tree

pages/de/docs/config/data/leaf-global-latest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,16 @@ const config: ConfigRoot = {
693693
default: false,
694694
desc: `Ob die fehlerhafte Vergabe des \`Wer braucht schon Raketen?\` Advancements behoben werden soll.<br>
695695
Mojira-Link: [MC-270656](https://mojira.dev/MC-270656).`
696+
},
697+
"mc-301114": {
698+
default: false,
699+
desc: `Ob das Memory-Leak im Combat-Tracker behoben werden soll, das durch Mobs verursacht wird, die ständig Schaden erhalten.<br>
700+
Mojira-Link: [MC-301114](https://mojira.dev/MC-301114).`
701+
},
702+
"mc-301114-max-entries": {
703+
default: 10240,
704+
desc: `Maximale Anzahl erlaubter Einträge im Combat-Tracker der Mobs.<br>
705+
Hat nur einen Effekt, wenn \`mc-301114\` oben auf \`true\` gestellt ist.`
696706
}
697707
}
698708
},
@@ -935,6 +945,7 @@ const config: ConfigRoot = {
935945
Die Protokoll-Unterstützung kann zu Inkompatibilität mit [ViaVersion](https://modrinth.com/plugin/viaversion) führen.<br>
936946
Wir empfehlen Spielern, einen Client zu verwenden, der dieselbe Version wie der Server-Core hat, und die neueste entsprechende Mod zu installieren; andernfalls können sie dem Server möglicherweise nicht beitreten.
937947
</div>`,
948+
/*
938949
"jade-protocol": {
939950
default: false,
940951
desc: `Ob die [Jade](https://modrinth.com/mod/jade)-Protokoll-Unterstützung aktiviert werden soll.<br>
@@ -986,6 +997,7 @@ const config: ConfigRoot = {
986997
desc: `Die maximale Dateigröße jeder geteilten Schematic-Datei, die auf den Server hochgeladen wird.<br>
987998
(Einheit: Byte, Standardwert 40.000.000 Bytes ≈ 38 MB)`
988999
},
1000+
*/
9891001
"do-a-barrel-roll-protocol": {
9901002
default: false,
9911003
desc: `Ob die [Do a Barrel Roll](https://modrinth.com/mod/do-a-barrel-roll)-Protokoll-Unterstützung aktiviert werden soll.<br>

pages/de/docs/config/system-properties.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ Ob `io_uring` für das I/O-Modell der Netzwerkdatenübertragung verwendet werden
4545

4646
Wenn `io_uring` in der aktuellen Umgebung nicht verfügbar ist, wird auf ein verfügbares Modell zurückgegriffen.
4747

48+
## -DLeaf.enable-base64coder-warning
49+
50+
- Standard: `false`
51+
52+
Ob eine Warnung ausgegeben werden soll, wenn ein Plugin veraltete `Base64Coder`-Methoden von SnakeYAML verwendet. Nutze diesen Flag, für Debugging-Zwecke, um zu ermitteln, welche Plugin diese Methoden verwendet.
53+
54+
Siehe [Leaf#571](https://github.com/Winds-Studio/Leaf/issues/571#issuecomment-3695175765) für weitere Informationen.
55+
4856
## -Dgale.log.warning.root
4957

5058
- Standard: `true`

pages/docs/config/data/leaf-global-latest.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,27 @@ const config: ConfigRoot = {
421421
Experimental feature, actively testing, please report any bugs you encounter.
422422
</div>`
423423
},
424+
// TODO: Add back when Leaf#528 merged
425+
// "optimize-entity-activation": {
426+
// default: false,
427+
// desc: `Whether to use a more efficient data structure for entity activation logic.<br>
428+
// <br>
429+
// __⚡Recommended value: \`true\`__`
430+
// },
424431
"only-tick-items-in-hand": {
425432
default: false,
426433
desc: `Whether to tick or update items only if the player holds them in the main hand or offhand, instead of ticking the entire inventory.<br>
427434
This currently only affects the ticking of compass and map item.<br>
428435
<br>
429436
__⚡Recommended value: \`true\`__`
430437
},
438+
// TODO: Add back when Leaf#518 merged
439+
// "optimize-mob-spawning": {
440+
// default: false,
441+
// desc: `Whether to use a more efficient data structure for collecting spawning chunks and nearest player lookup.<br>
442+
// <br>
443+
// __⚡Recommended value: \`true\`__`
444+
// },
431445
"optimize-no-action-time": {
432446
"disable-light-check": {
433447
default: false,
@@ -710,6 +724,16 @@ const config: ConfigRoot = {
710724
default: false,
711725
desc: `Whether to fix incorrect granting of \`Who needs rockets?\` advancement.<br>
712726
Mojira link: [MC-270656](https://mojira.dev/MC-270656).`
727+
},
728+
"mc-301114": {
729+
default: false,
730+
desc: `Whether to fix the memory leak in the combat tracker caused by the mob constantly being damaged.<br>
731+
Mojira link: [MC-301114](https://mojira.dev/MC-301114).`
732+
},
733+
"mc-301114-max-entries": {
734+
default: 10240,
735+
desc: `Max allowed entries in the mob's combat tracker.<br>
736+
This only has any effect if \`mc-301114\` above is \`true\`.`
713737
}
714738
}
715739
},
@@ -780,6 +804,21 @@ const config: ConfigRoot = {
780804
desc: "Same as \`horizontal-force\`, but it is for vertical velocity."
781805
}
782806
},
807+
// TODO: Add back when Leaf#603 merged
808+
// "ice-and-snow-chance": {
809+
// default: 48,
810+
// desc: `The chance of ice and snow formation.
811+
// <ul>
812+
// <li>If you want the ice and snow to occur less frequently, set this value higher.</li>
813+
// <li>If you want the ice and snow to behave more like vanilla, set this value closer to \`48\`.</li>
814+
// </ul>
815+
// __⚡Recommended value: \`384\` (\`384 = 48 * 8\`)__
816+
// <table>
817+
// <tr><td><b>Values for goals</b></td><td></td></tr>
818+
// <tr><td><i>Optimization</i></td><td><code>384</code></td></tr>
819+
// <tr><td><i>Vanilla behavior</i></td><td><code>48</code></td></tr>
820+
// </table>`
821+
// },
783822
// TODO: Add back when implemented it
784823
// "hide-item-component": {
785824
// "hidden-types": {
@@ -965,6 +1004,8 @@ const config: ConfigRoot = {
9651004
The protocol support may cause incompatibility with the [ViaVersion](https://modrinth.com/plugin/viaversion).<br>
9661005
We recommend players use a client that has the same version as the server core and install the latest corresponding mod; otherwise, they may be unable to join the server.
9671006
</div>`,
1007+
// TODO: Add back when Leaves procotols are added back
1008+
/*
9681009
"jade-protocol": {
9691010
default: false,
9701011
desc: `Whether to enable [Jade](https://modrinth.com/mod/jade) protocol support.<br>
@@ -1016,6 +1057,7 @@ const config: ConfigRoot = {
10161057
desc: `The maximum file size of each shared schematic file is uploaded to the server.<br>
10171058
(Unit: byte, default value 40,000,000 bytes ≈ 38 MB)`
10181059
},
1060+
*/
10191061
"do-a-barrel-roll-protocol": {
10201062
default: false,
10211063
desc: `Whether to enable [Do a Barrel Roll](https://modrinth.com/mod/do-a-barrel-roll) protocol support.<br>

pages/docs/config/system-properties.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ Whether to use io_uring for the I/O model used for network data transmission. Re
4545

4646
If io_uring is unavailable under the current environment, it will fallback to an available model.
4747

48+
## -DLeaf.enable-base64coder-warning
49+
50+
- default: `false`
51+
52+
Whether to print a warning when a plugin uses SnakeYAML's deprecated `Base64Coder` methods. Using this flag for debugging purposes to help identify which plugin is using it.
53+
54+
Check [Leaf#571](https://github.com/Winds-Studio/Leaf/issues/571#issuecomment-3695175765) for more information.
55+
4856
## -Dgale.log.warning.root
4957

5058
- default: `true`

pages/zh/docs/config/data/leaf-global-latest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,16 @@ const config: ConfigRoot = {
714714
default: false,
715715
desc: `是否修复 \`还要啥火箭啊?\` 进度触发的错误检查逻辑。<br>
716716
Mojira 问题跟踪链接:[MC-270656](https://mojira.dev/MC-270656)。`
717+
},
718+
"mc-301114": {
719+
default: false,
720+
desc: `是否修复战斗跟踪器(Combat Tracker)中,因生物受到持续性伤害导致的内存泄漏。<br>
721+
Mojira 问题跟踪链接:[MC-301114](https://mojira.dev/MC-301114)。`
722+
},
723+
"mc-301114-max-entries": {
724+
default: 10240,
725+
desc: `生物战斗跟踪器中允许的最大条目。<br>
726+
仅当上方的 \`mc-301114\` 设为 \`true\` 时才会生效。`
717727
}
718728
}
719729
},
@@ -969,6 +979,7 @@ const config: ConfigRoot = {
969979
开启协议支持后,可能导致和 [ViaVersion](https://modrinth.com/plugin/viaversion) 不兼容。<br>
970980
并且我们建议玩家使用与服务器核心相同版本的客户端,并安装对应模组的最新版本,否则将会无法进入服务器。
971981
</div>`,
982+
/*
972983
"jade-protocol": {
973984
default: false,
974985
desc: `是否开启对 [Jade](https://modrinth.com/mod/jade) 的协议支持。<br>
@@ -1020,6 +1031,7 @@ const config: ConfigRoot = {
10201031
desc: `上传至服务器的共享投影的最大单个文件大小。<br>
10211032
(单位:字节,默认 40,000,000 字节 ≈ 38 MB)`
10221033
},
1034+
*/
10231035
"do-a-barrel-roll-protocol": {
10241036
default: false,
10251037
desc: `是否开启对 [Do a Barrel Roll](https://modrinth.com/mod/do-a-barrel-roll) 的协议支持。<br>

pages/zh/docs/config/system-properties.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949

5050
如果当前运行环境不支持 io_uring,将自动回退到可用的 I/O 模型。
5151

52+
## -DLeaf.enable-base64coder-warning
53+
54+
- 默认值:`false`
55+
56+
是否在插件调用 SnakeYAML 已弃用的 `Base64Coder` 方法时打印警告。此 JVM 参数仅用于调试目的,以帮助识别哪个插件正在调用弃用的 `Base64Coder` 方法。
57+
58+
更多信息请查看 [Leaf#571](https://github.com/Winds-Studio/Leaf/issues/571#issuecomment-3695175765)
59+
5260
## -Dgale.log.warning.root
5361

5462
- 默认值:`true`

0 commit comments

Comments
 (0)