Files
netease-bedrock-wiki/mcguide/27-网络游戏/课程10:使用Spigot开服/99-下载内容.md
2024-12-23 10:57:59 +08:00

70 lines
1.4 KiB
Markdown
Raw 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.

---
front:
hard: 入门
time: 分钟
---
# 下载内容
下载方式如下:
![下载](./res/dl.png)
下载后导入解压到本地,获取.jar文件
![导入](./res/dl1.png)
## BungeeMaster插件
bc服插件必须用于bc服组网
## SpigotMaster插件
spigot服插件必须用于客户端python通信自定义物品
### 使用方式
下载 **SpigotMaster** 的jar包然后执行以下指令**path-to-jar**替换为jar路径
```shell
mvn install:install-file -Dfile=path-to-jar
-DgroupId=com.neteasemc
-DartifactId=SpigotMaster
-Dversion=x.x.x-SNAPSHOT
-Dpackaging=jar
```
- 插件编写时
1. 在pom.xml中添加依赖
```xml
<dependency>
<groupId>com.neteasemc</groupId>
<artifactId>SpigotMaster</artifactId>
<version>x.x.x-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
```
2. 在plugin.yml中添加依赖
```yml
depend:
- SpigotMaster
```
## 示例Demo
包含以下内容:
1. CustomItemDemo客户端新自定义物品示例
2. CustomPigModelDemo客户端为随机的猪更改颜色的示例
3. CustomHumanModelDemo: 客户端为更改玩家模型的示例
4. PyRpcDemo客户端python通信示例
5. ShopDemo商业化插件示例
6. CustomEntityDemo自定义实体示例
7. FormUIDemoServerFormUI示例
8. CustomBlockDemo: 自定义方块示例
9. InventoryToFormUIDemo:原生箱子UI转FormUI示例