Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@ title: 插件安装教程
sidebar_position: 1
---

import StructureExplorer from "@site/src/components/StructureExplorer";
import { levilamnaPluginStructure } from "@site/src/data/structures";

# 插件安装教程

## 插件的结构

LeviLamina 的插件是以文件夹的格式存在的。通常插件文件夹中包含以下内容:

<!-- Use c to highlight comments -->
```c
插件文件夹
├─manifest.json // 插件元数据文件,该文件必须存在并格式正确才能被 LeviLamina 识别
├─(插件配置文件和数据库)... // 插件生成的配置文件和数据库等,大多数插件的配置文件名叫 config.json,并以一个文件夹或一个 .db 或 .json 后缀文件作为数据库
├─(插件代码或二进制文件)... // 插件源代码,通常是 .js、.lua、.dll 后缀的文件。不要删除,修改或重命名文件,否则可能导致插件无法运行!
```
<StructureExplorer data={levilamnaPluginStructure} />

通常情况下,你不需要手动修改 `manifest.json` 这个文件,因为插件作者会将它事先配置好。如果有特殊插件需要手动配置这个文件,该插件文档应该会给出相应教程。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,20 @@ title: 服务端结构
sidebar_position: 1
---

import StructureExplorer from "@site/src/components/StructureExplorer";
import { bdsServerStructure } from "@site/src/data/structures";

# 服务端结构

我们先来简单看一眼 BDS **开服后** 的文件夹结构:

<!-- Use c to highlight comments -->
```c
BDS服务端文件夹
├─behavior_packs // 安装新行为包的文件夹
├─config // 没啥用
├─definitions // 貌似是生成群系的内容
├─development_behavior_packs // 为开发者提供安装新行为包的文件夹
├─development_resource_packs // 为开发者提供安装新资源包的文件夹
├─development_skin_packs // 为开发者提供安装新皮肤包的文件夹
├─resource_packs // 安装新资源包的文件夹
├─world-templates // 世界模板
├─worlds // 主世界文件夹
│ └─Bedrock level // 世界存档
│ ├─db // 存档数据文件夹
│ ├─level_dat // 存档设定
│ ├─level.dat_old // 存档设定 (旧)
│ └─level_name.txt // 存档名称
├─allowlist.json // 白名单文件
├─bedrock_server.exe // 服务端启动程序
├─bedrock_server.pdb // 程序数据库文件
├─bedrock_server_how_to.html // 如何使用 BDS 服务器的官方指南 (没多大用处,看看就行)
├─permissions.json // 管理员 (OP) 玩家相关数据
├─release-notes.txt // 服务端发行版本详情
├─server.properties // 配置文件
└─valid_known_packs.json // 已知的附加包
```

<!-- :::info
<StructureExplorer data={bdsServerStructure} />

{/* :::info

对于世界文件夹的详细说明,请前往 **[世界文件架构](what-is-world.md)**

::: -->
::: */}

## 根目录下的一些文件

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,20 @@ title: 服务端结构
sidebar_position: 1
---

import StructureExplorer from "@site/src/components/StructureExplorer";
import { nukitServerStructure } from "@site/src/data/structures";

# 服务端结构

我们先来简单看一眼 Nukkit **开服后** 的文件夹结构(大致结构是这样,部分分支会因为加了不同的功能结构会不一样):

<!-- Use c to highlight comments -->
```c
Nukkit Server/
├── nukkit-1.0-SNAPSHOT.jar //服务器核心
├── start.bat // Windows 运行脚本
├── start.sh // Linux 运行脚本
├── start.command // macOS 运行脚本
├── server.properties // 服务端配置文件
├── permissions.yml // 用于设置玩家权限的
├── banned-players.txt // 存储被封禁的玩家名单的
├── banned-ips.txt // 存储被封禁的 IP 地址
├── ops.txt // 用于设置管理员(OP)的
├── worlds/ // 主世界文件夹
│ ├── world/ // 世界存档
│ │ ├── level.dat // 存档设定
│ │ ├── region/ // 存储世界区块数据
│ │ └── entities/ // 存储世界中的实体数据
├── plugins/ // 插件存放文件夹
├── logs/ // 服务器日志存放
├── whitelist.txt // 存储允许加入服务器的玩家名单
└── rcon_password.txt // 存储 RCON(远程控制)功能的密码
```

<!-- :::info
<StructureExplorer data={nukitServerStructure} />

{/* :::info

对于世界文件夹的详细说明,请前往 **[世界文件架构](what-is-world.md)**

::: -->
::: */}

## 根目录下的一些文件

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: 游戏机制
sidebar_position: 2
---

import StructureExplorer from "@site/src/components/StructureExplorer";
import { geyserExtensionStructure } from "@site/src/data/structures";

# 游戏机制

目前,你服务器的基岩版玩家可能会遇到一些问题
Expand Down Expand Up @@ -158,13 +161,7 @@ Broadcaster 通过模拟 Xbox Live 客户端,将你的 Geyser/基岩版服务

2. **安装扩展**

```text
服务器根目录/
├── plugins/
│ └── Geyser-Spigot/
│ └── extensions/
│ └── MCXboxBroadcastExtension.jar
```
<StructureExplorer data={geyserExtensionStructure} />

3. **重启服务器**
- 重启服务器以加载扩展
Expand Down
181 changes: 0 additions & 181 deletions docs-java/process/plugin/more/plugin-build/first.md

This file was deleted.

Loading