配置插件/MOD
1.获取UUID
MCDR端
- 方法一:从启动日志获取
- 内容示例
- 方法二:从配置文件获取(第二次启动后)
- 内容示例(约25行左右)
- 开发中
- 开发中
- 开发中
- 开发中
- 打开浏览器,访问 NDPR官网
- 点击上方或左上角的 服主管理
- 登录/注册账号(温馨提示:滑块验证拖慢一点)
- 点击左侧的 Token管理
- 在上方"创建新Token"处填写uuid,然后生成Token
- (可选)点击左侧 上传权限,点击你的Token旁的申请上传权限,等待审核
- 内容示例(约17行左右)
- 开发中
- 开发中
- 开发中
- 开发中
- 内容示例(约32行左右)
text
[MCDR] [20:21:33] [TaskExecutor/INFO] [ndpr]: 服务器类型: xx
[MCDR] [20:21:33] [TaskExecutor/INFO] [ndpr]: UUID: xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
[MCDR] [20:21:34] [TaskExecutor/INFO] [ndpr]: NDPR插件已加载
目录: MCDR根目录\config\ndpr\config.toml
找到UUID配置项
toml
# UUID
# 首次启动时会自动获取,无需手动填写
# It will automatically get when it is first started, no need to fill in manually
#=======================================
uuid = "xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx"
#=======================================
插件端(JE)
Mod
插件端(BE)
代理端
2.获取Token
3.配置Token
MCDR端
目录: MCDR根目录\config\ndpr\config.toml
找到Token配置项,填写Token
toml
# Token(必填)
# Token (required)
# 带上你的UUID前往 https://ndpreforged.com 官网绑定邮箱后自动发放
# Bring your UUID with you to go https://ndpreforged.com Automatically distribute after binding email on the official website
# 如果需要启用封禁功能,必须配置此项
# If the ban function needs to be enabled, this item must be configured
#=======================================
token = "xxxxxxxxxxxxxxxxxxxx"
#=======================================
插件端(JE)
Mod
插件端(BE)
代理端
4.配置服务器类型
MCDR端
目录: MCDR根目录\config\ndpr\config.toml
找到服务器类型配置项,填写服务器类型
toml
# 服务器模式(必填)
# Server type (required)
# true = 正版服 (Online Server)
# false = 离线服 (Offline Server)
# 注意:必须填写此选项,否则插件不会正常加载
# Note: This option must be filled in, otherwise the plugin will not load normally
#=======================================
onlinemode = "" # 填写true或false
#=======================================