插件已在 1.8.1 版本测试通过!!!
插件版本:3.2.1
Minecraft/Bukkit 版本:1.5.1(在 1.8.1 上测试过)
本插件旨在让你能够简单地设置一个每天固定时间自动关闭服务器的时间,无需任何手动干预,并在关闭前为用户提供充足的警告。
你应该使用脚本来在服务器停止时自动重启它。在该脚本中,你可以执行任何备份或其他维护操作。
查看我们的示例...
要求:
- 兼容 SuperPerms/PermissionsEX 的权限插件。目前如果没有某种权限支持,将无法限制命令访问。
安装
- 将 AutoShutdown.jar 文件放入你的 plugins 目录。首次启动时,会创建配置文件。
- 编辑在 plugins/AutoShutdown/ 中创建的 config.yml 文件,并将设置更改为你喜欢的选项。
- 要么重载服务器以使更改生效,要么在游戏中使用 /as reload。此外,所有命令都可以在控制台中直接使用,无需斜杠。
升级
从所有先前版本到 2.2:AutoShutdown.properties 文件不再被读取。请使用 config.yml。我不喜欢 YAML,但它是标准格式,尽管我不同意 Bukkit 选择 YAML 作为配置文件格式,但我必须接受它。
首次启动时会创建一个带有注释的 config.yml 文件。启动服务器,进行修改,然后执行 /as reload。或者直接使用 /as set HH:MM 来设置你想要的关闭时间。
配置选项
默认配置文件可以在 这里找到
- shutdowntimes - 以 HH:MM 格式指定的停止服务器的时间。你可以指定多个时间,用逗号分隔。
- kickreason - 当用户被踢出时提供的理由。- 有效!
- kickonshutdown - 在关闭服务器之前踢出用户。(比流结束错误更好)- 有效!
- warntimes - 在你想广播警告消息给所有用户的关闭时间之前的秒数,用逗号分隔。
- gracetime - 响应 /as now 后等待关闭服务器的秒数
- Shutdown message - 显示警告时间时在聊天中显示的消息
权限节点
autoshutdown.admin - 访问所有 autoshutdown 命令。
命令
- /as help - 显示游戏内帮助
- /as reload - 重新加载配置文件(替换内存中当前计划的所有关闭操作)
- /as cancel - 取消当前计划的关闭操作
- /as set HH:MM - 将计划设置为新时间。写入 config.yml 以保持设置。由于 bug 目前部分禁用
- /as set now - 将关闭计划设置为在 60 秒内关闭
- /as list - 列出当前配置的关闭时间
视频! :D
西班牙语教程(在 spigot 1649 上测试)
<p>
西班牙语教程的功劳归于 MaxMar628
所有功劳归于 chromerium,他创建了直到 MC vr. 1.3.1 版本的模组
PLUGIN TESTED WITH 1.8.1!!!
Plugin Version: 3.2.1
Minecraft/Bukkit Version: 1.5.1 (Tested with 1.8.1)
This plugin is designed to allow you to simply set a time to have the server shut down at the same time every day, without any manual intervention, and provide users ample warning before it does so.
You should use a script to automatically restart the server when it stops. In that script, you could perform any backups or other maintenance you'd like to perform.
Look at our Examples here...
Requirements:
- SuperPerms/PermissionsEX compatible permissions plugin. Currently won't limit access to commands without some kind of permissions support.
Installation
- Drop the AutoShutdown.jar file into your plugins directory. At first start, the configuration file is created.
- Edit the config.yml file created in plugins/AutoShutdown/ and change the settings to what you would prefer.
- Either reload the server for the changes to take effect, or use /as reload from within the game. Also, all commands work from the console without the slash.
Upgrading
From all previous versions t 2.2: AutoShutdown.properties file is no longer read. Use the config.yml. I'm not a fan of YAML, but its the standard, and as much as I disagree with bukkit's choice of YAML for configuration files, I have to live with it.
A commented config.yml file will be created on first start. Start the server, make changes, then do an /as reload. Or just use /as set HH:MM to set the shutdown times you want.
Configuration Options
The default config file can be found here
- shutdowntimes - the time in HH:MM format to stop the server. You can specify multiple, times, separated by comma.
- kickreason - the reason to provide users when they are kicked.- working!
- kickonshutdown - kick users before shutting the server down. (Better than an end of stream error) - working!
- warntimes - seconds before the shutdown time you would like a warning message broadcast to all users, separated by comma.
- gracetime - seconds to wait before shutting the server down in response to an /as now
- Shutdown message - the message shown in chat when warn times are displayed
Permissions Nodes
autoshutdown.admin - Access to all autoshutdown commands.
Commands
- /as help - displays in-game help
- /as reload - reload the configuration file (replacing any shutdown you have scheduled currently in memory)
- /as cancel - cancel the currently scheduled shutdown
- /as set HH:MM - set the schedule to a new time. Writes to config.yml to persist the setting. Currently partial disabled due to a bug
- /as set now - set the shutdown schedule to shut down within 60 seconds
- /as list - lists what the currently configured shutdown times are
VIDEOS! :D
Spainish Tutorial (Tested on spigot 1649)
<p>
Credit for the spanish tutorial goes to MaxMar628
All credit goes to chromerium who created the mod up until MC vr. 1.3.1
评论 0
登录后参与评分
还没有评论,来抢沙发吧