
Maintenance Manager 是终极维护插件,让你的服务器维护时间变得轻松无比!
目前,它提供了一些我在其他地方找不到的独家功能。它非常易于使用和配置(即使配置是可选的)。我希望它能成为最好的 Bukkit 维护插件!
当前版本:2.2
功能:
- /maintenance 命令管理维护时间:/maintenance on|off
- 维护计划。安排你的维护时间,并通过 /maintenance on [距离维护开始前的分钟数] 通知玩家(可选,单位为分钟)
- 通过 /maintenance cancel 取消计划的维护。
- 通过 /maintenance on [距离维护开始前的分钟数] <持续时间> 定义维护时长(可选,单位为分钟)
- 在维护期间踢出非 OP 玩家以及没有登录权限的玩家。
- 防止未授权玩家在维护期间登录。
- 当服务器处于维护模式时,更改多人游戏屏幕上的 MOTD(服务器描述)。
- 命令可以从控制台或游戏中执行。
- 自定义维护时的服务器图标。
- 支持服务器重载。
- 你可以使用 /maintenance reload 在不重启或完全重载服务器的情况下重新加载配置。
- 完全支持权限系统。
- 完全自定义文本。
- 你可以选择维护期间可用的槽位数量。
- 通过 /maintenance [enable|disable] (插件名称) 实时管理你的插件,无需重载或重启服务器。禁用的插件在重启或重载后仍保持禁用状态,直到你重新启用它们。
- 当维护有预定持续时间时,MOTD 中显示倒计时。
- /maintenance 命令支持别名。有关更多信息,请参阅“命令”部分。
- 按需备份。
- 随时使用 /cpu 和 /ram 检查 CPU 和内存使用情况
命令:
/maintenance 是主命令。你需要添加以下参数:
别名: /mmode , /maint
- on: 开启维护模式
- <提前多少分钟调度>(可选)注意:如果你在维护开始前重载服务器,该调度将会被取消。
- <维护持续时间的分钟数>(可选)
- cancel: 取消已计划的维护。
- off: 关闭维护模式
- reload: 重载插件配置文件
- enable <插件名称>: 启用选定的插件。
- disable <插件名称>: 禁用选定的插件。
注意:如果你不确定插件名称,请输入 /plugins。
- backup: 将服务器文件夹保存为位于 "backups" 文件夹中的 zip 文件。
- /cpu : 以百分比显示当前的 CPU 使用率。
- /ram : 以百分比和 MB 为单位显示当前的内存使用率
权限:
maintenance.*: 授予所有 MaintenanceManager 命令的访问权限。
maintenance.maintenance: 允许开始或停止维护。
maintenance.maintenance.cancel: 允许取消已计划的维护。
maintenance.backup: 允许使用 /maintenance backup 命令。
maintenance.access: 允许在维护模式下进入服务器(并且在维护开始时不会被踢出)
maintenance.reload: 允许重载配置文件。
maintenance.manage.plugins: 允许禁用或启用插件。
maintenance.cpu: 允许使用 /cpu 命令。
maintenance.ram: 允许使用 /ram 命令。
当然,OP 玩家拥有这些权限。
配置:
默认情况下,配置文件如下所示:
#---------- MAINTENANCEMANAGER CONFIGURATION ----------#
maintenanceModeOnStart: false
remainingSeconds: 0
maxPlayersOnMaintenance: 10
disabledPlugins: []
#----------------------#
#General messages #
#----------------------#
maintenanceStart: '&2&o&lMaintenance time!'
maintenanceEnd: '&6&o&lMaintenance finished!'
maintenanceMessage: '&c&nThe server is currently under maintenance. Come back later.'
kickMessage: '&c&nThe server is currently under maintenance. Come back later.'
loginMessage: '&6&o&lThe server is currently in maintenance mode!'
cpuUsage: '&3CPU usage : &2&l<cpu>%'
ramUsage: '&3RAM usage : &2&l<ram%>% || <ram> MB'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#MOTD 相关配置 related #
#----------------------#
maintenanceMOTD: '&6&o&l维护模式中...'
维护模式持续显示信息: '&6&o&l维护中...<n>&2<分钟数> &r&e分钟剩余!'
维护模式少于1分钟显示信息: '&6&o&l维护中...<n>&2不到一分钟剩余!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#维护计划 相关 #
#----------------------#
scheduleMessage: '&5&o还有 &4&l<minutes> &5&ominutes 进行维护!'
scheduleMessageSeconds: '&5&o还有 &4&l<seconds> &5&oseconds 进行维护!'
scheduleCanceled: '&a&o已取消计划的维护!'
scheduleLessThanOneMinute: '&5&o不到一分钟就要进行维护了!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#插件 管理 #
#----------------------#
pluginDisabled: '&6&l<插件> &a&o已成功禁用!'
pluginEnabled: '&6&l<插件> &a&o已成功启用!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#备份相关设置 #
#----------------------#
backingUpMessage: '&e&o正在备份。服务器将短暂卡顿。'
backupSuccess: '&2&o&l备份成功!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#"Already" 消息 #
#----------------------#
maintenanceAlreadyLaunched: '&c服务器已处于维护模式。'
noMaintenanceLaunched: '&c维护模式已经关闭。'
noMaintenanceScheduled: '&c没有计划中的维护...'
maintenanceAlreadyScheduled: '&c已安排了维护。'
alreadyBackingUp: '&c请等待当前备份完成后再进行下一次备份!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#错误信息 #
#----------------------#
inputErrorSchedule: '&c排程的时间值必须是整数!'
inputErrorDuration: '&c持续时间的值必须是整数!'
pluginManagementArgumentErrorDisable: '&c请指定要禁用的插件名称!'
pluginManagementArgumentErrorEnable: '&c请指定要启用的插件名称!'
#----------------------------------------------------#
#----------------------------------------------------#
注意:你可以使用 "<n>" 标签来换行。
要为维护模式设置自定义图标,只需在服务器主文件夹中放置一个名为 maintenance-icon.png 的图片即可。如果插件在该文件夹中找不到 maintenance-icon.png,则会自动创建默认图标。
注意:你的图标必须是 64x64 像素的 PNG 图片!
建议:如果你不想更改图标,可以复制 server-icon.png 并将其重命名为 maintenance-icon.png。
重要提示:如果你的服务器未设置图标,即使在非维护状态下也会显示 maintenance-icon.png!
要为文本添加颜色,只需在你想要着色的单词前加上 '&' 以及 0-9 或 a-f 范围内的字符。请参考 此页面 了解格式化代码。
安装:
要安装 Maintenance Manager,只需下载 jar 文件并将其放入 "plugins" 文件夹中。
现在尽情体验 MaintenanceManager 的独特之处吧!
源代码:
查看代码 此处。
反馈:
你的意见对我非常重要!请在下方留言告诉我你的想法、你希望在这个插件中看到哪些功能,或者你想修改的地方!请向我报告任何你发现的 Bug。:)
我希望打造最好的 Bukkit 维护插件,而要做到这一点,我需要你的反馈!
感谢你的时间。
捐赠!
如果你非常喜欢这个插件,并想奖励我的工作,请进行捐赠!我将不胜感激!

Maintenance Manager is the ultimate maintenance plugin which makes maintenances times on your server way easier!
For the moment, it provides several exclusivities I havn't found anywhere else. It is very simple to use and to configure (even if the configuration is optionnal). I want to make it the best maintenance plugin for Bukkit!
Current version: 2.2
Features:
- /maintenance command manages the maintenance time: /maintenance on|off
- Maintenance schedule. Schedule your maintenance time and advert players with /maintenance on [time before maintenance time] (Optionnal, in minutes)
- Schedule interruption with /maintenance cancel.
- Define the duration of your maintenance with /maintenance on [time before maintenance time] <duration> (Optionnal, in minutes)
- Kicks non-op players and players who don't have the permission to log-in during the maintenance.
- Prevents non authorized players to log-in during maintenance.
- Changes the motd on the multi-player screen when the server is in maintenance.
- Commands can be casted from console or in-game.
- Custom server icon for maintenance.
- Server reload support.
- You can reload the config without restarting the server or reloading it entirely with /maintenance reload.
- Full permissions supported.
- Full texts customization.
- You can choose the number of slots available during a maintenance.
- Manage your plugins in real-time without having to reload or restart the server with /maintenance [enable|disable] (plugin name). Disabled plugins stay disabled after restart or reload until you re-enable it.
- Countdown in motd when a maintenance has a duration planned.
- Aliases on /maintenance command. See the Commands section for further informations.
- Backups on command.
- Check the CPU and RAM usage at any time with /cpu and /ram
Commands:
/maintenance is the main command. You'll have to add the following arguments:
Aliases: /mmode , /maint
- on: turn on the maintenance mode
- <schedule in minutes> (optionnal) Note: The schedule would cancel if you reload the server before the maintenance begin.
- <duration of the maintenance in minutes> (optionnal)
- cancel: cancels a scheduled maintenance.
- off: turn off the maintenance mode
- reload: reload the plugin's config file
- enable <plugin name>: enable the selected plugin.
- disable <plugin name>: disable the selected plugin.
Note: If you are not sure about the plugin name, type /plugins.
- backup: Saves the server folder into a zip file located in the "backups" folder.
- /cpu : displays the current cpu usage in percentage.
- /ram : displays the current ram usage in percentage and in Mb
Permissions:
maintenance.*: Give acces to all MaintenanceManager commands.
maintenance.maintenance: Allows to start or stop a maintenance.
maintenance.maintenance.cancel: Allows to cancel a scheduled maintenance.
maintenance.backup: Allows to use the /maintenance backup command.
maintenance.access: Allows to enter the server during maintenance mode (and don't be kicked when the maintenance begin)
maintenance.reload: Allows to reload the config file.
maintenance.manage.plugins: Allows to disable or enable plugins.
maintenance.cpu: Allows to use the /cpu command.
maintenance.ram: Allows to use the /ram command.
Of course, OP players have these permissions.
Configuration:
By default, the config file looks like this:
#---------- MAINTENANCEMANAGER CONFIGURATION ----------#
maintenanceModeOnStart: false
remainingSeconds: 0
maxPlayersOnMaintenance: 10
disabledPlugins: []
#----------------------#
#General messages #
#----------------------#
maintenanceStart: '&2&o&lMaintenance time!'
maintenanceEnd: '&6&o&lMaintenance finished!'
maintenanceMessage: '&c&nThe server is currently under maintenance. Come back later.'
kickMessage: '&c&nThe server is currently under maintenance. Come back later.'
loginMessage: '&6&o&lThe server is currently in maintenance mode!'
cpuUsage: '&3CPU usage : &2&l<cpu>%'
ramUsage: '&3RAM usage : &2&l<ram%>% || <ram> MB'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#MOTD related #
#----------------------#
maintenanceMOTD: '&6&o&lMaintenance mode...'
maintenanceWithDurationMOTD: '&6&o&lMaintenance mode...<n>&2&l<minutes> &r&eminutes remaining!'
maintenanceWithDurationMOTDLessThanOneMinute: '&6&o&lMaintenance mode...<n>&2Less than one minute remaining!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#Schedule related #
#----------------------#
scheduleMessage: '&5&oMaintenance in &4&l<minutes> &5&ominutes!'
scheduleMessageSeconds: '&5&oMaintenance in &4&l<seconds> &5&oseconds!'
scheduleCanceled: '&a&oThe scheduled maintenance have been canceled!'
scheduleLessThanOneMinute: '&5&oMaintenance in less than one minute!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#Plugins management #
#----------------------#
pluginDisabled: '&6&l<plugin> &a&osuccessfully disabled!'
pluginEnabled: '&6&l<plugin> &a&osuccessfully enabled!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#Backup related #
#----------------------#
backingUpMessage: '&e&oBacking up. The server will lag briefly.'
backupSuccess: '&2&o&lBackup success!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#"Already" messages #
#----------------------#
maintenanceAlreadyLaunched: '&cThe server is already in maintenance mode.'
noMaintenanceLaunched: '&cMaintenance mode is already off.'
noMaintenanceScheduled: '&cNo maintenance scheduled...'
maintenanceAlreadyScheduled: '&cA maintenance is already scheduled.'
alreadyBackingUp: '&cPlease wait the end of this backup before backing up again!'
#----------------------------------------------------#
#----------------------------------------------------#
#----------------------#
#Error messages #
#----------------------#
inputErrorSchedule: '&cThe time value for schedule must be an integer!'
inputErrorDuration: '&cThe time value for duration must be an integer!'
pluginManagementArgumentErrorDisable: '&cPlease name the plugin you want to disable!'
pluginManagementArgumentErrorEnable: '&cPlease name the plugin you want to enable!'
#----------------------------------------------------#
#----------------------------------------------------#
Note: You can use the "<n>" tag to break the line.
To set your custom icon for maintenances, just put an image named maintenance-icon.png in the main folder of your server. The default one auto-creates if the plugins doesn't find any maintenance-icon.png in that folder.
Note: Your icon must be a 64X64 png image!
Advice: If you don't want to change the icon, copy-paste server-icon.png and rename it into maintenance-icon.png
Important: If your server is running without icon, maintenance-icon.png will be displayed even out of a maintenance!
To add colors to your texts, just put '&' and a character from 0-9 and a-f before the words you want to color. Please refer you to this page to know formatting codes.
Setup:
To set up Maintenance Manager, simply download the jar file and put it into "plugins" folder.
And now enjoy the uniqueness of MaintenanceManager!
Sources:
Take a look at the code here.
Feedback:
Your opinion is important for me! Please write a comment below and let me know what you think, what you would like to see in the plugin or what you would like to change! Please report me any bug you have. :)
I want to make the best maintenance plugin for Bukkit, and to do that, I need your feedback!
Thank you for your time.
Donate!
If you really enjoy this plugin and you want to reward me for my work, please donate! I would be very grateful!
评论 0
登录后参与评分
还没有评论,来抢沙发吧