Files
netease-modsdk-wiki/docs/mconline/30-网络服插件教程/2-初识插件/2-应用插件.md
2025-03-17 13:24:39 +08:00

53 lines
1.7 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.
# 应用插件
本节会以官方插件每日登陆奖励为例介绍如何应用插件在Apollo框架中。
## 视频教程
<iframe src="https://cc.163.com/act/m/daily/iframeplayer/?id=618100dc75882ab49553e983" height="600" width="800" allow="fullscreen" />
## 文字教程
1. 打开Studio基岩版网络服标签。
2. 点击官方插件
![](./images/deploy-1.png)
3. 点击官方插件,找到每日登陆奖励,点击全部下载,点击后效果如图。
<img src="./images/deploy-2.png" style="zoom:150%;" />
4. 关闭官方插件界面找到neteaseDailyService点击更多打开目录复制mod.sql文件。
![](./images/deploy-3.png)
5. 在Navicat中连接到开发机数据库minecraft。
6. 对minecraft数据库右键点击运行sql文件。
<img src="./images/deploy-4.png" style="zoom:200%;" />
7. 选择文件粘贴mod.sql文件点击开始。
<img src="./images/deploy-5.png" style="zoom:200%;" />
8. 关闭界面回到Studio。网络服开发 中,找到你创建的网络服。右键点击,选择服务器配置。
![](./images/deploy-6.png)
9. 游戏配置->大厅服->Mod 勾选neteaseDaily控制服->Mod勾选neteaseDailyMaster如果按照教程创建的空白模板没有功能服则新增一个功能服Mod勾选neteaseDailyService。点击完成。
<img src="./images/deploy-7.png" style="zoom:150%;" />
10. 鼠标移到网络服上,点击部署。
<img src="./images/deploy-8.png" style="zoom:200%;" />
11. 部署完成后,点击开发测试。即可进入游戏。
体现本mod的功能需要调用接口会放在后面讲解。也可以跟着[视频](#视频教程)操作进行尝试。效果图见[插件下载](./1-插件下载.html)。