26.2
1.0 · Release版本: 1.0支持游戏: 26.2类型: FabricRelease下载次数: 291
一款轻量级 Fabric 模组,为 Minecraft 服务器添加简单的自动重启功能,帮助管理服务器重启并执行启动脚本。
简易自动重启是一款轻量级 Fabric 模组,旨在为您的 Minecraft 服务器添加简单的自动重启功能。它专注于做好一件事:管理服务器重启,并在服务器停止时执行您的启动脚本。
所有命令都需要管理员权限。
/restart
/cancelrestart
/easyautorestart restart
/easyautorestart add <HH:mm>
/easyautorestart add 04:00)。/easyautorestart remove <HH:mm>
/easyautorestart list
配置文件生成于 config/easy-auto-restart.json。您可以直接编辑此文件,或使用游戏内命令来管理计划。
{
"dailyRestartTimes": [
"04:00",
"16:00"
],
"scriptPath": "./start.sh",
"executeScript": true
}已复制!
.bat 文件(例如:./start.bat)。.sh 文件(例如:./start.sh)。true,模组会在服务器停止时尝试运行 scriptPath 处的文件。如果您只想让模组停止服务器(例如,使用外部包装器如 Pterodactyl 或 Docker),请设置为 false。.jar 文件移动到服务器的 mods 文件夹中。start.bat 或 start.sh)。模组依赖此脚本在服务器停止后重新启动它。收录
请登录之后再进行评论