本帖最后由 GiNYAi 于 2018-5-8 17:55 编辑
简介
简介

这是一个拥有许多功能的服务器重启插件
功能

BStats
这个插件使用bStats来匿名地收集使用信息。
你可以在config/bstats/config.conf关闭此项功能。
所有收集的信息可以在这里查看:https://bstats.org/plugin/sponge/MMCReboot
汉化
感谢Tollainmear提供的汉化
- 每隔 # 小时自动重启服务器
- 在每天的固定时间自动重启服务器
- 玩家可以使用指令 /reboot vote 投票重启服务器(可以在配置文件中配置,默认开启)
- 在计分板中显示投票统计和重启倒计时(当剩余时间小于5分钟).
- 可配置的聊天栏中的倒计时提醒
- 可选的重启原因
- 使用/sponge plugins reload重载配置
- mmcreboot.reboot.vote - 开启一个重启投票
- mmcreboot.reboot.now - 即刻重启服务器
- mmcreboot.reboot.start - 设置一个重启的倒计时
- mmcreboot.reboot.time - 检查到下次重启剩下的时间
- mmcreboot.reboot.cancel - 取消进行中的重启/投票
- mmcreboot.reboot.bypass.vote - 避开/reboot vote的初始检查
- mmcreboot.reboot.toggle.vote - 可以在游戏中开关投票系统
- /Reboot vote
- /Reboot vote yes | no
- /Reboot vote on | off
- /Reboot now
- /Reboot start h|m|s time [reason-optional]
- /Reboot cancel
- /Reboot time
- /Reboot help

BStats
这个插件使用bStats来匿名地收集使用信息。
你可以在config/bstats/config.conf关闭此项功能。
所有收集的信息可以在这里查看:https://bstats.org/plugin/sponge/MMCReboot
汉化
感谢Tollainmear提供的汉化
谢谢楼主,感谢分享

没办法在面板服上用啊
雲都 发表于 2018-1-22 10:39
没办法在面板服上用啊
面板服一般都有定时任务这个功能的吧
重启就是关服 不会自动开启0.0 能解决吗
chunlu5415 发表于 2018-4-11 20:19
重启就是关服 不会自动开启0.0 能解决吗
你可以在启动脚本中加上循环
以cmd为例的话
- :start
- 启动java
- goto start
烦请G大更新一波 最新版已经支持1.12.2了
GiNYAi 发表于 2018-4-11 21:08
你可以在启动脚本中加上循环
以cmd为例的话
大佬 如果是centos系统怎么写
310239712 发表于 2018-6-21 20:39
大佬 如果是centos系统怎么写
- while true
- do
- java -XX:+UseG1GC -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:MetaspaceSize=1024m -XX:MaxMetaspaceSize=2048m -XX:+AggressiveOpts -XX:MaxGCPauseMillis=10 -XX:+UseStringDeduplication -Xms2G -Xmx4G -jar forge-1.12.2-14.23.4.2705-universal.jar nogui
- done
非常感谢帮大忙了
ml0834666 发表于 2018-6-23 02:26
这个循环怎么退出啊?比方不按键就继续。按键就停止。
- while true
- do
- echo "Starting server..."
- java -XX:+UseG1GC -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:MetaspaceSize=1024m -XX:MaxMetaspaceSize=2048m -XX:+AggressiveOpts -XX:MaxGCPauseMillis=10 -XX:+UseStringDeduplication -Xms2G -Xmx4G -jar forge-1.12.2-14.23.4.2705-universal.jar nogui
- if read -n1 -t 5 -p "Press any key in 5 seconds to stop..."
- then
- exit 0
- fi
- done
期待楼主的下次更新
感谢楼主分享好有用
MCBBS有你更精彩~
MCBBS有你更精彩~
...........................
感谢楼主分享好有用