1.5 KiB
1.5 KiB
front, hard, time
| front | hard | time |
|---|---|---|
| 入门 | 20分钟 |
启用网易支持
本文将指导您调整服务器设置以允许网易客户端进服,如果您并不了解如何部署一个Allay服务器,请移步至Allay部署教程。
调整server-settings.yml
Allay默认不允许网易客户端进服,需要修改服务器根目录下server-settings.yml中的如下配置项:
network-settings:
# Enable support for NetEase (China) Minecraft clients
netease-client-support: true
# If set to true, only NetEase clients can join the server
# This option only takes effect when netease-client-support is enabled
only-allow-netease-client: false
您还可以将only-allow-netease-client设置为true,以阻止国际版客户端进服。
安装NetAllay(可选)
Allay的API模块默认不提供网易版独有接口,例如PyRpc,商城接口等。如需使用,您需要在服务器上安装NetAllay。
您需要从Release页面下载NetAllay的jar包并将其放入服务器的plugins文件夹内。
如果您的插件需要调用NetAllay的接口,需要在项目中引入NetAllay作为依赖:
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.allaymc:net-allay:<version>")
}
allay {
plugin {
dependency("NetAllay")
}
}
有关NetAllay的更多内容:
- 常用接口文档请见NetAllay常用接口文档
- 源码与项目仓库请见:https://github.com/AllayMC/NetAllay