Skip to content

基本配置

代表 configuration.toml

服务端地址

设置服务端绑定的地址。 (绑定后只允许来自该 IP 的玩家进入服务端)

toml
server_address = "0.0.0.0:25565"

种子

设置世界生成的种子。

toml
seed = ""

最大玩家数

设置服务端允许的最大玩家数量。

toml
max_players = 100000

视野距离

设置玩家的最大视野距离。

toml
view_distance = 10

模拟距离

设置玩家的最大模拟距离。

toml
simulation_distance = 10

默认难度

设置游戏的默认难度。

toml
default_difficulty = "Normal"
toml
Peaceful
Easy
Normal
Hard

操作权限等级

设置所有玩家的默认权限等级。

toml
op_permission_level = 4

允许下界

是否启用下界维度。

toml
allow_nether = true

极限模式

是否启用服务端的极限模式。

toml
hardcore = false

在线模式

是否启用在线模式。需要有效的 Minecraft 账户。

toml
online_mode = true

加密

是否启用数据包加密。

IMPORTANT

启用在线模式时需要。

toml
encryption = true

服务器描述

设置在服务器列表上显示的服务端描述。

toml
motd = "一款超快速的南瓜服务端!"

TPS

设置服务端的目标 Tick 速率。

toml
tps = 20.0

默认游戏模式

设置玩家的默认游戏模式。

toml
default_gamemode = "Survival"
toml
Undefined
Survival
Creative
Adventure
Spectator

IP隐藏

是否从日志中隐藏玩家 IP。

toml
scrub_ips = true

使用图标

是否使用服务端图标。

toml
use_favicon = true

图标路径

设置服务端图标的路径。

toml
favicon_path = "icon.png"

Released under the MIT License.