EasyReload
简短说明:
我在一整年前就创建了这个项目,直到今天(也就是我更新此描述的那天),我在看一些关于 modernth 的 YouTube 视频时几乎都快忘了它。
我没想到还会有人下载我的插件。
我只是有几个问题想问那些仍在用这个插件的人。
- 这个插件真的有用吗?如果有的话,我会考虑更新和改进它。
- 我不知道,我只遇到过一个问题。
请在这个项目的 GitHub 上开个 issue 告诉我这个插件有多好用。
就是这样,我以为这个插件早就没人用了。
谢谢!
这是什么插件?
简单来说,这个插件自动化了将构建好的插件应用到插件开发/测试服务器的过程。
它是为 Bukkit/Spigot 插件开发者设计的,旨在轻松自动化构建和测试二进制文件的过程。
前置条件/要求:
-
需要您的项目使用 Gradle 作为构建系统。
-
需要插件测试/开发服务器在同一台机器上运行。
-
端口范围 12121 到 12125 和 12126 到 12130 中需有任意端口空闲。
-
服务器启动脚本,无论是 Windows 的批处理文件 (.bat) 还是 macOS/Linux 的 bash 脚本 .sh,其名称都应为 start.<扩展名>。否则,服务器可能无法按预期重启,即不会提供给它任何自定义参数。
版本特定说明:
- 在 1.0 版本中,该插件依赖于
/reload 和 /restart 命令,并且仅在 Spigot 上运行。请根据您的环境正确配置 /restart。
- 从 1.1 版本开始,所有功能均可在 Bukkit 服务器上正常运行。
安装:
- 将插件的 JAR 文件放入服务器的插件目录中。
- 获取
easyreload.gradle 文件(位于 easyreload.gradle.zip 压缩包内),并将其放置于项目的根目录下(即构建脚本所在的位置)。
- 在项目的
build.gradle 文件中,添加以下代码行:apply from: 'easyreload.gradle'
- 最后,在
gradle.properties 文件中添加以下两个属性:serverDir 和 shouldRestart
注意:
serverDir 属性应设置为服务器文件所在的路径。
shouldRestart 属性只能取以下值之一:true 或 false。它决定是完全重启服务器,还是仅重新加载插件。(在某些情况下非常有用。)
- 如果将
shouldRestart 属性更改为除 true 或 false 之外的任何值,构建后步骤将会失败。
EasyReload
Short note:
I made this project a whole year ago and almost forgot about it until today (the day i m updating this description) when i was watching some yt video bout moderinth.
I didn't expect that there'd be people still downloading my plugin.
I just have some few question to those of you who still use this plugin.
- Is this plugin that helpful? If so i'd consider updating + improving it.
- idk, i only had one.
Open an issue on this project's github to tell me how helpful this plugin is.
Thats it, I thought this plugin would have been just dead, and not being used by others.
Thanks!
What is this plugin?
This plugin, simply put, automates the process of taking the built plugin and applying it to the plugin devlopment/testing server.
It is meant for bukkit/spigot plugin devlopers to automate the process of building and testing the binaries with ease.
Prerequisites/Requirements:
- Requires Gradle to be the build system of your project.
- Requires that the plugin testing/devlopment server be on the same machine.
- Any port being free in the range
12121 to 12125 and 12126 to 12130.
- The server start script, either batch
(.bat) for windows or bash .sh for macOS/Linux should have the name start.<extension> otherwish the server might not restart as intended i.e. without any custom arguments provided to it.
Version Specific:
- On version 1.0, the plugin depended on the
/reload and /restart commands, and it only ran on Spigot. Make sure to setup /restart appropriately according to your enviroment.
- From version 1.1, all functionalities do work on bukkit servers too.
Installation:
- Take the plugin JAR file and place it in your server's plugin directory.
- Take the
easyreload.gradle file (present in the easyreload.gradle.zip zip file.), and place it in your project's home directory. (i.e. where your build scripts lies)
- In your project's
build.gradle file, add the following line of code: apply from: 'easyreload.gradle'
- Lastly, in your
gradle.properties file, add the following two properties: serverDir and shouldRestart
Note:
- The
serverDir property should be set to where your server files are.
- The
shouldRestart property can only have the following values: true or false. And it determines whether it should completely restart the server or just "reload" the plugins. (Useful in some cases).
- Changing the
shouldRestart property to anything else than true or false will result in the post build steps failing.
评论 0
登录后参与评分
还没有评论,来抢沙发吧