Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit d076b42

Browse files
committed
Feat: enrich bedrock edition properties info
1 parent 36fdc65 commit d076b42

File tree

3 files changed

+64
-22
lines changed

3 files changed

+64
-22
lines changed

src/components/mc_process_config/bds_server.properties.vue

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
</div>
1010
</div>
1111
<div class="sub-title">
12-
<div class="sub-title">{{this.$t("processConfig.introduction.common.aboutConfig")}}</div>
12+
<div class="sub-title">{{ this.$t("processConfig.introduction.common.aboutConfig") }}</div>
1313
<div class="sub-title-info">
14-
{{this.$t("processConfig.introduction.bdsServerProperties.infoLong")}}
14+
{{ this.$t("processConfig.introduction.bdsServerProperties.infoLong") }}
1515
</div>
1616
</div>
1717
</template>
@@ -40,27 +40,41 @@ export default {
4040
return {
4141
description: {
4242
"server-name": this.$t("processConfig.bdsServerProperties.serverName"),
43+
"gamemode": this.$t("processConfig.bdsServerProperties.gamemode"),
44+
"force-gamemode": this.$t("processConfig.bdsServerProperties.forceGamemode"),
45+
"difficulty": this.$t("processConfig.bdsServerProperties.difficulty"),
4346
"allow-cheats": this.$t("processConfig.bdsServerProperties.allowCheats"),
47+
"max-players": this.$t("processConfig.bdsServerProperties.maxPlayers"),
48+
"online-mode": this.$t("processConfig.bdsServerProperties.onlineMode"),
49+
"allow-list": this.$t("processConfig.bdsServerProperties.allowList"),
50+
"server-port": this.$t("processConfig.bdsServerProperties.serverPort"),
4451
"server-portv6": this.$t("processConfig.bdsServerProperties.serverPortv6"),
52+
"enable-lan-visibility": this.$t("processConfig.bdsServerProperties.enableLanVisibility"),
53+
"view-distance": this.$t("processConfig.bdsServerProperties.viewDistance"),
4554
"tick-distance": this.$t("processConfig.bdsServerProperties.tickDistance"),
55+
"player-idle-timeout": this.$t("processConfig.bdsServerProperties.playerIdleTimeout"),
4656
"max-threads": this.$t("processConfig.bdsServerProperties.maxThreads"),
57+
"level-name": this.$t("processConfig.bdsServerProperties.levelName"),
58+
"level-seed": this.$t("processConfig.bdsServerProperties.levelSeed"),
4759
"default-player-permission-level": this.$t("processConfig.bdsServerProperties.defaultPlayerPermissionLevel"),
4860
"texturepack-required": this.$t("processConfig.bdsServerProperties.texturepackRequired"),
4961
"content-log-file-enabled": this.$t("processConfig.bdsServerProperties.contentLogFileEnabled"),
5062
"compression-threshold": this.$t("processConfig.bdsServerProperties.compressionThreshold"),
63+
"compression-algorithm": this.$t("processConfig.bdsServerProperties.compressionAlgorithm"),
5164
"server-authoritative-movement": this.$t("processConfig.bdsServerProperties.serverAuthoritativeMovement"),
5265
"player-movement-score-threshold": this.$t("processConfig.bdsServerProperties.playerMovementScoreThreshold"),
53-
"enable-lan-visibility": this.$t("processConfig.bdsServerProperties.enableLanVisibility"),
54-
"compression-algorithm": this.$t("processConfig.bdsServerProperties.compressionAlgorithm"),
5566
"player-movement-action-direction-threshold": this.$t("processConfig.bdsServerProperties.playerMovementActionDirectionThreshold"),
56-
"chat-restriction": this.$t("processConfig.bdsServerProperties.chatRestriction"),
57-
"disable-player-interaction": this.$t("processConfig.bdsServerProperties.disablePlayerInteraction"),
58-
"client-side-chunk-generation-enabled": this.$t("processConfig.bdsServerProperties.clientSideChunkGenerationEnabled"),
59-
"player-movement-distance-threshold": this.$t("processConfig.bdsServerProperties.playerMovementDistanceThreshold"),
67+
"player-movementdistance-threshold": this.$t("processConfig.bdsServerProperties.playerMovementDistanceThreshold"),
6068
"player-movement-duration-threshold-in-ms": this.$t("processConfig.bdsServerProperties.playerMovementDurationThresholdInMs"),
6169
"correct-player-movement": this.$t("processConfig.bdsServerProperties.correctPlayerMovement"),
6270
"server-authoritative-block-breaking": this.$t("processConfig.bdsServerProperties.serverAuthoritativeBlockBreaking"),
63-
"level-name": this.$t("processConfig.bdsServerProperties.levelName"),
71+
"chat-restriction": this.$t("processConfig.bdsServerProperties.chatRestriction"),
72+
"disable-player-interaction": this.$t("processConfig.bdsServerProperties.disablePlayerInteraction"),
73+
"client-side-chunk-generation-enabled": this.$t("processConfig.bdsServerProperties.clientSideChunkGenerationEnabled"),
74+
"block-network-ids-are-hashes": this.$t("processConfig.bdsServerProperties.blockNetworkIdsAreHashes"),
75+
"disable-persona": this.$t("processConfig.bdsServerProperties.disablePersona"),
76+
"disable-customSkins": this.$t("processConfig.bdsServerProperties.disableCustomSkins"),
77+
"server-build-radius-ratio": this.$t("processConfig.bdsServerProperties.serverBuildRadiusRatio")
6478
}
6579
};
6680
}

src/language/en_us.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,27 +579,41 @@
579579
},
580580
"bdsServerProperties": {
581581
"serverName": "Used as the server name",
582+
"gamemode": "Sets the game mode for new players.",
583+
"forceGamemode": "forces the server to send to the client gamemode values other than the gamemode value saved by the server during world creation",
584+
"difficulty": "Sets the difficulty of the world.",
582585
"allowCheats": "If true then cheats like commands can be used.",
583-
"serverPortv6": "Which IPv6 port the server should listen to.",
586+
"maxPlayers": "The maximum number of players that can play on the server.",
587+
"onlineMode": "If true then all connected players must be authenticated to Xbox Live.",
588+
"allowList": "If true then all connected players must be listed in the separate allowlist.json file.",
589+
"serverPort": "Which IPv4 port the server should listen to.",
590+
"serverPortv6": "Which IPv4 port the server should listen to.",
591+
"enableLanVisibility": "Listen and respond to clients that are looking for servers on the LAN.",
592+
"viewDistance": "The maximum allowed view distance in number of chunks.",
584593
"tickDistance": "The world will be ticked this many chunks away from any player.",
594+
"playerIdleTimeout": "After a player has idled for this many minutes they will be kicked. If set to 0 then players can idle indefinitely.",
585595
"maxThreads": "Maximum number of threads the server will try to use. If set to 0 or removed then it will use as many as possible.",
596+
"levelName": "Allowed values: Any string without semicolon symbol or symbols illegal for file name: /\\n\\r\\t\\f`?*\\\\<>|\\\":",
597+
"levelSeed": "Use to randomize the world",
586598
"defaultPlayerPermissionLevel": "Permission level for new players joining for the first time. Allowed values: \"visitor\", \"member\", \"operator\"",
587599
"texturepackRequired": "Force clients to use texture packs in the current world",
588600
"contentLogFileEnabled": "Enables logging content errors to a file",
589601
"compressionThreshold": "Determines the smallest size of raw network payload to compress",
602+
"compressionAlgorithm": "Determines the compression algorithm to use for networking",
590603
"serverAuthoritativeMovement": "Enables server authoritative movement.",
591604
"playerMovementScoreThreshold": "The number of incongruent time intervals needed before abnormal behavior is reported.",
592-
"enableLanVisibility": "Listen and respond to clients that are looking for servers on the LAN.",
593-
"compressionAlgorithm": "Determines the compression algorithm to use for networking",
594605
"playerMovementActionDirectionThreshold": "The amount that the player's attack direction and look direction can differ.",
595-
"chatRestriction": "This represents the level of restriction applied to the chat for each player that joins the server.",
596-
"disablePlayerInteraction": "If true, the server will inform clients that they should ignore other players when interacting with the world. This is not server authoritative.",
597-
"clientSideChunkGenerationDnabled": "If true, the server will inform clients that they have the ability to generate visual level chunks outside of player interaction distances.",
598606
"playerMovementDistanceThreshold": "The difference between server and client positions that needs to be exceeded before abnormal behavior is detected.",
599607
"playerMovementDurationThresholdInMs": "The duration of time the server and client positions can be out of sync (as defined by player-movement-distance-threshold) before the abnormal movement score is incremented. This value is defined in milliseconds.",
600608
"correctPlayerMovement": "If true, the client position will get corrected to the server position if the movement score exceeds the threshold.\n",
601609
"serverAuthoritativeBlockBreaking": "If true, the server will compute block mining operations in sync with the client so it can verify that the client should be able to break blocks when it thinks it can.",
602-
"levelName": "Allowed values: Any string without semicolon symbol or symbols illegal for file name: /\\n\\r\\t\\f`?*\\\\<>|\\\":"
610+
"chatRestriction": "This represents the level of restriction applied to the chat for each player that joins the server.",
611+
"disablePlayerInteraction": "If true, the server will inform clients that they should ignore other players when interacting with the world. This is not server authoritative.",
612+
"clientSideChunkGenerationEnabled": "If true, the server will inform clients that they have the ability to generate visual level chunks outside of player interaction distances.",
613+
"blockNetworkIdsAreHashes": "If true, the server will send hashed block network ID's instead of id's that start from 0 and go up. These id's are stable and won't change regardless of other block changes.",
614+
"disablePersona": "Internal Use Only",
615+
"disableCustomSkins": "If true, disable players customized skins that were customized outside of the Minecraft store assets or in game assets. This is used to disable possibly offensive custom skins players make.",
616+
"serverBuildRadiusRatio": "If \"Disabled\" the server will dynamically calculate how much of the player's view it will generate, assigning the rest to the client to build.\nOtherwise from the overridden ratio tell the server how much of the player's view to generate, disregarding client hardware capability."
603617
},
604618
"bukkitYml": {
605619
"settings": {

src/language/zh_cn.json

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -579,27 +579,41 @@
579579
},
580580
"bdsServerProperties": {
581581
"serverName": "服务器名称",
582+
"gamemode": "游戏模式",
583+
"forceGamemode": "强制服务器向客户端发送游戏模式值,而不是服务器在世界创建期间保存的游戏模式值",
584+
"difficulty": "难度",
582585
"allowCheats": "是否允许使用类似命令的作弊手段",
586+
"maxPlayers": "最大玩家数量",
587+
"onlineMode": "在线模式",
588+
"allowList": "开启白名单",
589+
"serverPort": "服务器端口",
583590
"serverPortv6": "服务器端口(IPv6)",
591+
"enableLanVisibility": "开启局域网可见",
592+
"viewDistance": "允许的最大视图距离(以区块为单位)。",
584593
"tickDistance": "停止加载区块的距离(允许值:4,12)",
594+
"playerIdleTimeout": "玩家闲置超过这么多分钟将被踢出。(0则不限制)",
585595
"maxThreads": "服务端使用的最大线程数(0则不限制)",
596+
"levelName": "世界(地图)名称 不要使用中文和这些符号: /\\n\\r\\t\\f`?*\\\\<>|\\\":",
597+
"levelSeed": "Use to randomize the world",
586598
"defaultPlayerPermissionLevel": "默认玩家权限等级(游客: visitor | 会员: member | 管理员: operator",
587599
"texturepackRequired": "强制客户端加载服务端资源包",
588600
"contentLogFileEnabled": "是否将错误内容记录到日志文件中",
589601
"compressionThreshold": "要压缩的原始网络有效负载的最小大小",
602+
"compressionAlgorithm": "压缩算法",
590603
"serverAuthoritativeMovement": "是否启用服务端权威性移动",
591604
"playerMovementScoreThreshold": "报告异常行为之前所需的数据不一致的数量",
592-
"enableLanVisibility": "开启局域网可见",
593-
"compressionAlgorithm": "压缩算法",
594605
"playerMovementActionDirectionThreshold": "玩家运动方向阈值",
595-
"chatRestriction": "聊天限制",
596-
"disablePlayerInteraction": "禁用玩家互动",
597-
"clientSideChunkGenerationDnabled": "启用客户端块生成",
598606
"playerMovementDistanceThreshold": "在检测到异常行为之前,服务端与客户端数值之差",
599607
"playerMovementDurationThresholdInMs": "服务端和客户端位置的时间长度可能不同步 (在 serverAuthoritativeMovement 选项为 false 时失效)",
600608
"correctPlayerMovement": "是否在移动值超过阈值时,将客户端的玩家位置校正为服务端玩家的位置",
601609
"serverAuthoritativeBlockBreaking": "是否启用服务端权威性挖掘",
602-
"levelName": "世界(地图)名称 不要使用中文"
610+
"chatRestriction": "聊天限制",
611+
"disablePlayerInteraction": "禁用玩家互动",
612+
"clientSideChunkGenerationEnabled": "启用客户端块生成",
613+
"blockNetworkIdsAreHashes": "如果为 true,服务器将发送散列块网络 ID,而不是从 0 开始向上的 id。 这些 id 是稳定的,无论其他块发生变化都不会改变。",
614+
"disablePersona": "仅供内部使用",
615+
"disableCustomSkins": "允许玩家自定义皮肤",
616+
"serverBuildRadiusRatio": "服务器生成玩家视图"
603617
},
604618
"bukkitYml": {
605619
"settings": {

0 commit comments

Comments
 (0)