原始插件来自 lichenaut(Codeberg | Github)。
我对该插件进行了适配和更新,使其兼容最新的 Minecraft 版本。我所做的更改详情请参阅更新日志。
DatapackLoader
DatapackLoader 会自动将数据包添加到你的 Minecraft 服务器!此插件可用于安装数据包并加速数据包的开发生成。DatapackLoader 支持 Folia,但不会使与 Folia 不兼容的数据包变得兼容 Folia。
插件安装
- 从最新版本下载插件。
- 停止你的服务器。
- 将 datapackloader-X.X.X.jar 放入服务器的 plugins 文件夹中。
3-1. 如果你是从之前的 datapackloader 版本进行更新,请删除旧的 datapackloader 文件夹。 :warning: 别忘了备份你的数据包! :warning:
- 启动服务器。
- 现在插件会生成一个新的文件夹、配置文件和语言文件。
- 你可以在配置文件中更改语言。目前仅实现了英语和德语。如果你希望你的语言出现在 datapackloader 中,欢迎使用英文文件作为模板并创建拉取请求。
- 如果进行了任何更改,请在控制台输入 /datapackloder reload 以重新加载配置文件和语言文件。
- 别忘了使用你喜欢的权限管理插件设置相应的权限。(我推荐 LuckPerms)默认情况下,大多数权限仅限 OP 状态访问。
- 现在你可以使用 /datapackloader import <url> 直接在服务器上下载数据包,或者自行下载并将其放入插件文件夹内的 plugin's datapack 文件夹中。
- 现在重新加载插件,你就可以使用了!
方法
有三种添加数据包的方法:
- 在 '/datapackloader import <url> 或 /dpl import <url>' 控制台命令中粘贴 URL。
- 手动拖放到插件的 'datapacks' 文件夹中。
- 在 'config.yml' 中启用 'starter-datapack'。
命令
commands:
/datapackloader help:
description: "显示 datapackloader 帮助信息。"
/datapackloader import <url>
description: "允许用户通过下载导入数据包。"
/datapackloader reload:
description: "允许用户在配置文件或语言文件更改后重新加载插件。"
权限
permissions:
datapackloader.*:
description: "授予所有 DatapackLoader 命令的访问权限"
default: op
children:
datapackloader.command: true
datapackloader.command.help: true
datapackloader.command.import: true
datapackloader.command.reload: true
datapackloader.command:
description: "允许使用基础 /datapackloader 命令"
default: op
datapackloader.command.help:
description: "允许使用 /datapackloader help"
default: true
datapackloader.command.import:
description: "允许使用 /datapackloader import 添加数据包"
default: op
datapackloader.command.reload:
description: "允许使用 /datapackloader reload 重新加载配置和语言文件"
default: op
Original Plugin from lichenaut (Codeberg | Github).
I adapted and updated the plugin to be compatible with the latest Minecraft Version. Detailed informations about the changes I made are in the changelog.
DatapackLoader
DatapackLoader automatically adds datapacks to your Minecraft server! This plugin can be used to install datapacks and quicken datapack development. DatapackLoader supports Folia, but does not make Folia-incompatible datapacks compatible with Folia.
Plugin Installation
- Download plugin from latest releases.
- Stop your server.
- Put the datapackloader-X.X.X.jar in your server's plugins folder.
3-1. If you update from previous releases of datapackloader, please delete the old datapackloader folder. :warning: Don't forget to backup your datapacks! :warning:
- Start the server.
- Now the plugin generates a new folder, config and language files.
- You can change the language in the config file. Currently only english and german are implemented. If you want your language to be in datapackloader, feel free to use the english file as template and create a pull request.
- If you made any changes type /datapackloder reload in your console and reload the config and language files.
- Don't forget to set the corresponding permissions with your preferred permission manager plugin. (I recommend LuckPerms) Per default most permissions are only accessible with op status.
- Now you can either use /datapackloader import <url> to download a datapack directly on your server or you download it yourself and put it into the plugin's datapack folder inside the plugin's folder.
- Now reload the plugin and you're ready to go!
Methods
There are three methods for adding datapacks:
- Pasting a URL into the '/datapackloader import <url> or /dpl import <url>' console command.
- Dragging and dropping by hand into the plugin's 'datapacks' folder.
- Enabling 'starter-datapack' in 'config.yml'.
Commands
commands:
/datapackloader help:
description: "Displays the datapackloader help."
/datapackloader import <url>
description: "Allows the user to import a datapack via download."
/datapackloader reload:
description: "Allows the user to reload the plugin after changes in the config or language files."
Permissions
permissions:
datapackloader.*:
description: "Grants access to all DatapackLoader commands"
default: op
children:
datapackloader.command: true
datapackloader.command.help: true
datapackloader.command.import: true
datapackloader.command.reload: true
datapackloader.command:
description: "Allows using the base /datapackloader command"
default: op
datapackloader.command.help:
description: "Allows using /datapackloader help"
default: true
datapackloader.command.import:
description: "Allows using /datapackloader import to add datapacks"
default: op
datapackloader.command.reload:
description: "Allows using /datapackloader reload to reload config and languages"
default: op
评论 0
登录后参与评分
还没有评论,来抢沙发吧