From a0f5f09e57b2c362d7e7dce015415b0d27165006 Mon Sep 17 00:00:00 2001 From: lilingfeng Date: Mon, 12 Aug 2024 13:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=A6=E7=BB=86=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=95=99=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../start/basic/server-file-structure.md | 2 +- docs-java/start/config-server.md | 79 ++++++++++++++++++- docs-java/start/launch-server.md | 6 +- 3 files changed, 81 insertions(+), 6 deletions(-) diff --git a/docs-java/start/basic/server-file-structure.md b/docs-java/start/basic/server-file-structure.md index a18ae417a..c03b189d2 100644 --- a/docs-java/start/basic/server-file-structure.md +++ b/docs-java/start/basic/server-file-structure.md @@ -5,7 +5,7 @@ sidebar_position: 3 # 服务端结构 -我们先来简单看一眼 Purpur 的文件夹结构: +我们先来简单看一眼 插件端 的文件夹结构(以Purpur为例): ```c ├─assets // 储存 Minecraft 音效贴图等重要文件,不要乱动 diff --git a/docs-java/start/config-server.md b/docs-java/start/config-server.md index 9c68acc78..36a7153d4 100644 --- a/docs-java/start/config-server.md +++ b/docs-java/start/config-server.md @@ -94,10 +94,81 @@ difficulty=hard 支持以下值 -* peaceful(0)=和平 -* easy(1)=简单 -* normal(2)=普通 -* hard(3)=困难 +* peaceful(0) - 和平 +* easy(1) - 简单 +* normal(2) - 普通 +* hard(3) - 困难 + +## 出生点保护 + +``` +spawn-protection=16 +``` + +出生点的保护范围,在保护范围中只有OP可以破坏或者放置 + +设置为0可以禁用 + +## 允许玩家前往地狱/生成地狱世界 + +``` +allow-nether=true +``` + +设置为`false`可以禁用地狱 + +## 默认游戏模式 + +``` +gamemode=survival +``` + +支持以下模式 + +* 生存 - survival 或 0 +* 创造 - creative 或 1 +* 冒险 - adventure 或 2 +* 旁观 - spectator 或 3 + +## 强制游戏模式 + +``` +force-gamemode=false +``` + +如果设置为`true`,玩家加入后将会被强制改为默认游戏模式 + +## 结构生成 + +``` +generate-structures=true +``` + +结构(如村庄)是否会在新区块中生成 + +:::note + +即使设置为false,地牢仍会生成 + +::: + +## 允许玩家互相攻击 + +``` +pvp=true +``` + +## 允许飞行 + +``` +allow-flight=true +``` + +:::warning + +最好将此值设为`true`,无论你是否需要飞行,如果你需要反飞行,请查看反作弊一章 + +::: ## 服务器端口 diff --git a/docs-java/start/launch-server.md b/docs-java/start/launch-server.md index d9705b0bb..0853991e7 100644 --- a/docs-java/start/launch-server.md +++ b/docs-java/start/launch-server.md @@ -133,4 +133,8 @@ set https_proxy=http://127.0.0.1:7890 注:输入之后仅对这个命令行窗口有效,`开启新的 / 关闭它` 之后要重新输入。 -> 大佬们,浏览器能用不是 cmd 能用,不然你猜我为什么写这个。 \ No newline at end of file +> 大佬们,浏览器能用不是 cmd 能用,不然你猜我为什么写这个。 + +#### 中文乱码 + +如果你用的是Windows,你需要在启动脚本**最前面**加上`chcp 65001` \ No newline at end of file