AutoShutdown
在特定时间内没有玩家在线时,自动停止/关闭你的服务器。不多不少,就是这么简单。
为什么? 这可以释放你系统中的资源,并降低在你无人监控服务器时因吸引不必要的关注而产生的风险。
安装
- 将 .jar 文件放入你的 plugins 或 mods 文件夹中(取决于你使用的服务器加载器)。
- 运行一次服务器以生成配置文件,然后再次停止它。
- 根据需要更改任何配置值。
- 再次运行服务器。
- 插件/模组现在应该已经正常工作了。
配置
| 值 |
加载器 * |
说明 |
| initial_delay |
bukkit, fabric |
指定在第一次检查“在线玩家”之前的延迟时间。 |
| polling_delay |
fabric |
每次检查“在线玩家”之间的时间间隔。 |
| shutdown_delay |
bukkit, fabric |
从最后一个人离开服务器(或初始延迟结束后)到实际关闭服务器的时间段。如果在此期间有新玩家加入服务器,关闭过程将被取消。 |
| enable_logging |
bukkit, fabric |
是否应将基本信息记录到控制台。禁用时,警告和错误仍会被记录,但不会记录基本信息。 |
* 根据你使用的插件/模组版本(例如 bukkit 或 fabric),某些值可能对你来说相关或不相关,因此可能不存在于你的配置文件中。不过插件/模组本身仍能完美工作 :). 对于确实存在的值,你可以在这里找到它们的解释。
帮助!我该使用哪个版本?
- 对于基于 fabric 的 Minecraft 服务器(例如 fabric、quilt 等),请使用标注为 [fabric] 的版本。
- 对于基于 bukkit 的服务器(例如 craftbukkit、spigot、paper 等),请使用标注为 [bukkit] 的版本。
需要更新到较新的 Minecraft 版本?
只需尝试适用于你的加载器的最新版本插件即可(参见上方的“帮助!我该使用哪个版本?”),它很可能仍然能正常工作。
我更新支持版本部分的速度不够快,无法跟上新版本 Minecraft 发布的频率,抱歉!
有问题、漏洞报告或功能请求?
请在此处使用 GitHub Issues 页面,因为我可能不会经常阅读这个 Modrinth 页面。
AutoShutdown
Automatically stop/shutdown your server after no players have been online for a specific amount of time. Nothing more, nothing less.
Why? This frees up resources on your system and can minimize the risk of unwanted attention to your server while no one is there to monitor it.
Installation
- Put the .jar file in your plugins or mods folder (depending on server loader you are using).
- Run the server once to generate the config file and stop it again
- Change any config values if wanted
- Run the server again
- The plugin/mod should now be working
Config
| value |
loader * |
explanation |
| initial_delay |
bukkit, fabric |
Specifies the delay before the first check for 'online players'. |
| polling_delay |
fabric |
The amount of time between each check for 'online players' |
| shutdown_delay |
bukkit, fabric |
Timeframe after the last person has left the server (or after the initial delay has ended), until the server is actually shut down. If a new player joins the server within this timeframe, the shutdown process will be cancelled. |
| enable_logging |
bukkit, fabric |
Whether or not basic information should be logged to the console. When disabled, warnings and errors will still be logged but no basic information. |
* Depending on the version of the plugin/mod you are using (e.g. bukkit or fabric) some values might or might not be relevant to you and thus not exist within your config file. The plugin/mod itself however will still work perfectly fine :). For the values that do exist, you can find their explanation here.
Help! Which version do I use?
- For any minecraft servers based on fabric (e.g. fabric, quilt, etc.) use the version annotated with [fabric].
- For servers based on bukkit (e.g. craftbukkit, spigot, paper, etc.) use the [bukkit] annotated version.
Newer minecraft version needed?
Just try the newest version of the plugin for your loader (see "Help! Which version do I use?" above), it will likely work anyway.
I don't update the supported versions section often enough to keep up with the rate at which new minecraft versions drop, srry!
Questions, bugs or feature requests?
Please use the github issues page for this as I will probably not read this modrinth page that often.
评论 0
登录后参与评分
还没有评论,来抢沙发吧