automa/minecraft/configs/server.properties

70 lines
4.3 KiB
Properties
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# server.properties 文件Minecraft 服务器核心配置。
# 此文件通过卷挂载到容器中,优先覆盖环境变量设置。
# 所有值均为示例,用户可根据需求修改。
# 注意:移除原 rcon.password 值,使用 .env 中的 RCON_PASSWORD 动态注入。
#Minecraft server properties
# 生成时间示例(自动更新,无需修改)
#Tue Nov 04 17:06:20 CST 2025
accepts-transfers=false # 是否允许玩家从其他服务器传输(默认 false
allow-flight=false # 是否允许飞行false 防止作弊)
allow-nether=true # 是否启用下界true 为标准生存)
broadcast-console-to-ops=true # 是否向 OP 广播控制台消息
broadcast-rcon-to-ops=true # 是否向 OP 广播 RCON 消息
bug-report-link= # 错误报告链接(留空或填自定义)
difficulty=normal # 难度peaceful/easy/normal/hardnormal 为标准)
enable-command-block=false # 是否启用命令方块false 防止滥用)
enable-jmx-monitoring=false # 是否启用 JMX 监控(用于高级调试)
enable-query=false # 是否启用查询端口(用于外部工具查询服务器状态)
enable-rcon=true # 是否启用 RCONtrue与 .env 中的密码结合使用)
enable-status=true # 是否启用服务器状态查询
enforce-secure-profile=true # 是否强制安全配置文件(正版验证相关)
enforce-whitelist=false # 是否强制白名单false未启用如需启用设为 true 并配置 whitelist.json
entity-broadcast-range-percentage=100 # 实体广播范围百分比100 为默认)
force-gamemode=false # 是否强制游戏模式
function-permission-level=2 # 函数权限级别2 为标准)
gamemode=survival # 默认游戏模式survival/creative/adventure/spectator
generate-structures=true # 是否生成结构(如村庄)
generator-settings={} # 生成器设置JSON留空为默认
hardcore=false # 是否硬核模式(死亡后封号)
hide-online-players=false # 是否隐藏在线玩家列表
initial-disabled-packs= # 初始禁用数据包
initial-enabled-packs=vanilla,fabric,easyauth,fabric-convention-tags-v2,server_translations_api # 初始启用数据包(基于 Fabric 和模组)
level-name=world # 世界名称world 为默认文件夹)
level-seed= # 世界种子(留空为随机)
level-type=minecraft\:normal # 世界类型normal 为标准)
log-ips=true # 是否记录玩家 IPtrue 为安全审计)
max-chained-neighbor-updates=1000000 # 最大链式邻居更新(防止滞后)
max-players=20 # 最大玩家数(原为 114514改为通用示例 20根据服务器资源调整
max-tick-time=60000 # 最大 tick 时间(毫秒,超时重启)
max-world-size=29999984 # 最大世界大小
motd=A Minecraft Server # 服务器欢迎消息(改为通用示例,原为个人化;支持颜色代码如 §6
network-compression-threshold=256 # 网络压缩阈值
online-mode=false # 是否正版验证false 允许盗版客户端连接)
op-permission-level=4 # OP 权限级别4 为最高)
player-idle-timeout=0 # 玩家空闲超时0 为无限)
prevent-proxy-connections=false # 是否防止代理连接
pvp=true # 是否启用 PVP
query.port=25565 # 查询端口(与服务器端口一致)
rate-limit=0 # 速率限制0 为无)
rcon.password= # RCON 密码(留空,使用 .env 中的值动态注入;原已移除)
rcon.port=25575 # RCON 端口
region-file-compression=deflate # 区域文件压缩deflate 为标准)
require-resource-pack=false # 是否要求资源包
resource-pack= # 资源包 URL
resource-pack-id= # 资源包 ID
resource-pack-prompt= # 资源包提示
resource-pack-sha1= # 资源包 SHA1
server-ip= # 服务器 IP留空为所有接口
server-port=25565 # 服务器端口
simulation-distance=10 # 模拟距离(影响性能)
spawn-animals=true # 是否生成动物
spawn-monsters=true # 是否生成怪物
spawn-npcs=true # 是否生成 NPC
spawn-protection=16 # 生成保护半径(新手保护)
sync-chunk-writes=true # 是否同步区块写入(防止数据丢失)
text-filtering-config= # 文本过滤配置
use-native-transport=true # 是否使用本地传输(优化性能)
view-distance=10 # 视图距离(影响性能)
white-list=false # 是否启用白名单false未启用如需启用设为 true