О плагине Maintenance
Самый настраиваемый бесплатный плагин для обслуживания вашего сервера Minecraft, который только можно найти. Он работает на Paper, Velocity, Bungee, а также на Sponge.
- Автор
- kennytv
- Лицензия
- GNU General Public License v3.0 only
- Первая публикация
- Последнее обновление
- Категории
- Управление, Утилиты
О этом плагине
Этот плагин позволяет активировать режим обслуживания на вашем сервере Paper, Velocity, Bungee и Sponge, что будет препятствовать входу игроков без соответствующего разрешения.

Этот плагин использует MiniMessage в качестве формата текста компонентов. ФОРМАТИРОВАНИЕ ТЕКСТА В СТАРОМ СТИЛЕ (§a/&a) НЕ ПОДДЕРЖИВАЕТСЯ
- Используйте https://webui.adventure.kyori.net/ для предварительного просмотра разобранных компонентов
- Полную документацию по формату (включая обычные цвета и форматирование, rgb, события клика/наведения и многое другое) можно найти здесь: https://docs.adventure.kyori.net/minimessage/format
Его возможности включают:
- Пользовательский MOTD и иконка сервера, которые будут отображаться во время обслуживания
- Таймеры начала и окончания, которые включат/выключат режим обслуживания после истечения времени
- Запланированные таймеры, которые включат обслуживание, а затем отключат его после заданного периода
- Переменная '%TIMER%', которую можно использовать в ping‑сообщении, чтобы показать время до завершения работающего таймера окончания (другие переменные и приёмы объяснены в комментариях конфигурационного файла)
- Белый список обслуживания, позволяющий определённым игрокам подключаться, пока вы работаете над сервером
- Уведомления, когда игроки пытаются зайти на ваш сервер во время обслуживания
- Почти все сообщения редактируемы через файл локализации, доступный на множестве разных языков
Дополнительные возможности на Velocity/Bungee:
- Хотите включить обслуживание только на одном сервере? Вы также можете сделать это, используя команду
/maintenance <on/off> <servername> - Связывайте несколько экземпляров прокси через подключение к базе данных MySQL, чтобы не включать/выключать обслуживание на каждом прокси вручную
- Ожидающие серверы во время полного обслуживания прокси, а также резервные серверы, к которым переходить, когда отдельный проксируемый сервер находится на обслуживании
- Используете ServerListPlus? Обслуживание будет переключать его статус при включении и повторно включать MOTD SLP при отключении обслуживания
- Хотите использовать плейсхолдеры PlaceholderAPI на Paper? Смотрите здесь для получения дополнительной информации о MaintenanceAddon.
Хотите узнать секрет? Вы можете разместить текст слева от иконки сервера, просто добавив много пробелов в сообщение количества игроков, например:
playercountmessage: "Maintenance AAAA"

ВАЖНО: При использовании плагина на сервере Paper требуется плагин ProtocolLib, чтобы полностью использовать возможности Maintenance.
Проблемы/Поддержка
Нашли ошибку? Используйте трекер проблем Другие вопросы или проблемы? Присоединяйтесь к Discord‑сообществу поддержки ✨
German Plugin Tutorial @YouTube
Команды
Аргументы в < > обязательны, а те, что в [ ], — нет (можно опустить).
- /maintenance <on/off> [server] установит статус режима обслуживания
- /maintenance reload перезагружает конфигурацию и файл иконки обслуживания
- /maintenance <add/remove> <player/uuid> позволяет определённым игрокам подключаться к серверу, когда обслуживание включено
- /maintenance whitelist возвращает список всех игроков в белом списке обслуживания
- /maintenance starttimer [server] <minutes> включит режим обслуживания после истечения времени
- /maintenance endtimer [server] <minutes> включит режим обслуживания на указанное время в минутах. По истечении времени он будет отключён
- /maintenance schedule [server] <minutes> <minutesToEnd> включит режим обслуживания после заданного времени, а затем отключит его согласно второму параметру
- /maintenance aborttimer отменяет работающий таймер начала/окончания
- /maintenance setmotd <index> <1/2> <message> задаёт MOTD для режима обслуживания
- /maintenance motd выводит текущие MOTD режима обслуживания
- /maintenance update удалённо скачивает новейшую версию плагина на ваш сервер
- /maintenance dump выводит информацию о сервере, используемую в отчётах об ошибках
Разрешения
- maintenance.admin — суперразрешение, предоставляющее доступ ко всем нижеперечисленным правам
- maintenance.bypass — возможность зайти на сервер во время обслуживания
- maintenance.command — использовать команду "/maintenance" (также требуется для использования подкоманд)
- maintenance.toggle — использовать команды "/maintenance <on/off>"
- maintenance.reload — использовать команду "/maintenance reload"
- maintenance.update — использовать команды "/maintenance <update/forceupdate>"
- maintenance.timer — использовать команды "/maintenance <starttimer/endtimer> <minutes>" и "/maintenance timer abort"
- maintenance.whitelist.add — использовать команду "/maintenance add <player>"
- maintenance.whitelist.remove — использовать команду "/maintenance remove <player>"
- maintenance.whitelist.list — использовать команду "/maintenance whitelist"
- maintenance.setmotd — использовать команду "/maintenance setmotd <index> <1/2> <message>"
- maintenance.motd — использовать команду "/maintenance motd"
- maintenance.dump — использовать команду "/maintenance dump"
- maintenance.joinnotification — если включено: отправляет вам уведомление, когда игрок пытается зайти на сервер во время включённого обслуживания
Дополнительные разрешения для части Velocity/Bungee:
- maintenance.singleserver.bypass.<server> — возможность зайти на проксируемый сервер во время обслуживания
- maintenance.singleserver.toggle — использовать команды "/maintenance <on/off> <server>"
- maintenance.singleserver.timer — использовать команды "/maintenance <starttimer/endtimer> <server> <minutes>" и "/maintenance timer abort <server>"
- maintenance.singleserver.status — использовать команду "/maintenance status"
ВАЖНО — Если вы используете плагин на вашем прокси‑сервере: эти разрешения должны быть назначены на прокси, а не на бекенд‑серверах! Лучший способ сделать это — использовать надёжный плагин управления правами на прокси (например, LuckPerms).
Конфигурация
Если вы используете Paper‑версию плагина, вам необходимо установить ProtocolLib, чтобы использовать пользовательскую иконку сервера и сообщения о количестве игроков (или у вас запущен Paper версии 1.12.2 или выше)! Остальное, однако, доступно и без него. Для версии Velocity/Bungee вам не требуется устанавливать какие‑либо другие плагины.
proxied-maintenance-servers, fallback и mysql разделы предназначены только для версии Velocity/Bungee.
# Enables maintenance mode.
maintenance-enabled: false
# Enables maintenance on certain servers managed by your proxy instance(s).
proxied-maintenance-servers:
- PaperServer1
# - AnotherServer
# If maintenance is enabled on a proxied server with players on it, they will be sent to the fallback server instead of being kicked off the network.
# If the fallback server is not reachable/not set, they will just be kicked off the network.
# This can also be set to an array to set multiple fallback servers, in case one server is not always reachable: 'fallback: [s1, s2, s3, ...]'
fallback: lobby
# If maintenance is enabled globally, you can define a "waiting" lobby for players to be sent to instead of being kicked.
# Leave this empty to disable.
waiting-server: ""
# The message shown in the multiplayer server list motd when maintenance is enabled.
# If you put in multiple entries, one of them will be chosen randomly on every ping.
# If running an endtimer, the time left can be displayed by including '%TIMER%' in a pingmessage (also works in playercount(-hover) message).
pingmessages:
- "<red>Currently under maintenance<br><gradient:#fbffc2:#0fffff>We will be back soon!"
# - "Other entry"
enable-pingmessages: true
# Any extra commands inside the arrays will be executed when maintenance is enabled/disabled.
# Example: commands-on-maintenance-enable: ["say hello!", "stop"]
commands-on-maintenance-enable: []
commands-on-maintenance-disable: []
# If set to true and an endtimer is currently running, a pingmessage from this pool will be chosen
# instead of the ones above, so you can have different messages for when an endtimer is running/not running.
enable-timerspecific-messages: true
timerspecific-pingmessages:
- "<red>Currently under maintenance<br><gradient:#fbffc2:#fffff>Come back in:</gradient> <color:#aa55ee>%TIMER%"
# - "Other entry"
# If set to true, the message below will be shown in the top right corner of the server in the serverlist, where the playercount would normally be displayed.
# If set to false, the normal playercount will be shown.
#
# Alternatively you can use '%ONLINE%' and '%MAX%' if you want to include the playercount in a custom message (e.g. "Maintenance %ONLINE%/%MAX%").
# DOES NOT SUPPORT RGB!
enable-playercountmessage: true
playercountmessage: "<dark_red>Maintenance"
# Is shown when you move your mouse above the text in the top right corner of the server in the serverlist,
# where the playercount would normally be displayed.
# DOES NOT SUPPORT RGB!
playercounthovermessage: "<red>Currently under<br><red>maintenance"
# If set to true, the server icon will be changed to the 'maintenance-icon.png' file in the plugin's folder during maintenance.
custom-maintenance-icon: false
# If set to true, players with the 'maintenance.joinnotification' permission will receive a message,
# that a player tried to join the server while maintenance is enabled.
send-join-notification: false
# Set this to false if you do not want players to be kicked when you enable maintenance (new connections will still be blocked).
# ... I don't know why you would want that, but you can disable it. :p
kick-online-players: true
# Changes the language of command feedback/messages.
# If you find missing translations or want to contribute a new language file, you are very welcome to message me on the Paper forums or my Discord server! :)
# Currently available are: en (English), de (German), fr (French), pt (Portuguese), es (Spanish), ru (Russian), zh (Chinese), it (Italian), pl (Polish)
language: en
# If you have 2 or more proxy instances, the database connection will make sure all proxies
# have the same maintenance status, so you won't have to enable/disable it on every proxy by hand.
mysql:
use-mysql: false
host: host
port: 3306
database: database
username: username
password: password
# Requests to the database will only be made at least x seconds after the last request,
# so there won't be a request on every single ping on a server with many players.
#
# Set this to 0 to make a database request on (almost) every single ping.
# (0 is not recommended if having more than a hundred concurrent players, then I'd recommend keeping it from 10-60).
update-interval: 15
# If you for some reason cannot establish SSL connections to your database, you may disable it here (not recommended).
use-ssl: true
# If enabled and the server is restarted while running an endtimer, the timer will be continued after the restart.
# If the timer ends while the server is offline, maintenance will be disabled as soon as the server starts again.
continue-endtimer-after-restart:
enabled: false
# This value is set everytime an endtimer is started, cancelled or ended.
# Do not manually change this value.
end: 0
# If using the timer command: In what intervalls before enabling/disabling maintenance there will be a broadcast.
timer-broadcast-for-seconds: [1200, 900, 600, 300, 120, 60, 30, 20, 10, 5, 4, 3, 2, 1]
# If disabled, you will no longer receive any messages if there is an update.
# Not recommended to disable, as new versions generally tend to run better and with fewer bugs.
# However, you can always check for updates manually using the '/maintenance update' command.
update-checks: true
# Used for autoupdating the config, do not change this value.
config-version: 6
# Messages containing the placeholder "<prefix>" will have it replaced with the following string
prefix: "<dark_gray>[<yellow>Maintenance<dark_gray>] "
noPermission: "<red>You do not have the permission to execute that command."
kickmessage: "<red>The server is currently under maintenance!<br>Try again later!"
maintenanceActivated: "<prefix><gold>Maintenance mode is now activated."
maintenanceDeactivated: "<prefix><gold>Maintenance mode is now deactivated."
alreadyEnabled: "<prefix><red>Maintenance is already enabled!"
alreadyDisabled: "<prefix><red>Maintenance is already disabled!"
endtimerBroadcast: "<prefix><gray>Maintenance mode will be disabled in <gold>%TIME%<gray>."
endtimerStarted: "<prefix><green>Started timer: <gray>Maintenance mode will be deactivated in <gold>%TIME%<gray>."
starttimerBroadcast: "<prefix><gray>Maintenance mode will be enabled in <gold>%TIME%<gray>."
starttimerStarted: "<prefix><green>Started timer: <gray>Maintenance mode will be activated in <gold>%TIME%<gray>."
scheduletimerBroadcast: "<prefix><gray>Maintenance mode will be enabled in <gold>%TIME% <gray>and will last for <gold>%DURATION%<gray>."
timerAlreadyRunning: "<prefix><red>There is already a timer scheduled!"
timerNotRunning: "<prefix><red>There is currently no running timer."
timerCancelled: "<prefix><red>The current timer has been disabled."
timerTooLong: "<prefix><red>The number has to be less than 40320 (28 days)!"
timerMotdDisabled: "<prefix><red>You have to set 'enable-timerspecific-messages' in the config to 'true', if you want to use/edit timerspecific motds."
motdTimer: "%HOURS%:%MINUTES%:%SECONDS%"
motdTimerNotRunning: "-"
joinNotification: "<prefix><yellow>%PLAYER% <red>tried to join the server."
motdList: "<prefix><gray>List of your maintenance motds:"
motdListEmpty: "<prefix><red>You don't have any maintenance motds set!"
reload: "<prefix><green>Reloaded config, whitelistedplayers, language file and the maintenance icon."
removedMotd: "<prefix><green>Removed motd number %INDEX%."
removeMotdError: "<prefix><red>You only have one motd, so you cannot remove any!"
setMotd: "<prefix><green>Set line %LINE% of the %INDEX%. maintenance motd to %MOTD%"
setMotdIndexError: "<prefix><red>You currently have %MOTDS% motds, so you have to pick a number between 1 and %NEWAMOUNT%."
setMotdLineError: "<prefix><red>The second argument has to be the line number (1 or 2)!"
updateDownloading: "<prefix><red><bold>Downloading update..."
updateFailed: "<prefix><dark_red><bold>Update failed!"
updateFinished: "<prefix><green><bold>The update was successful! To prevent issues with tasks and to complete the update, you have to restart the server!"
whitelistedPlayers: "<prefix><gold>Whitelisted players for maintenance:"
whitelistedPlayersFormat: "<dark_gray>- <yellow>%NAME% <dark_gray>(<gray>%UUID%<dark_gray>)"
whitelistAdded: "<prefix><green>Added <aqua>%PLAYER% <green>to the maintenance whitelist!"
whitelistAlreadyAdded: "<prefix><aqua>%PLAYER% <red>already is in the maintenance whitelist!"
whitelistRemoved: "<prefix><green>Removed <aqua>%PLAYER% <green>from the maintenance whitelist!"
whitelistNotFound: "<prefix><red>This player is not in the maintenance whitelist!"
whitelistEmpty: "<prefix><red>The maintenance whitelist is empty! Use <yellow>/maintenance add <player/uuid> <red>to add someone!"
playerNotFound: "<prefix><red>No player with this name has played on this server before."
playerNotFoundUuid: "<prefix><red>No player with that uuid could be found."
playerNotOnline: "<prefix><red>There is no player online with that name."
invalidUuid: "<prefix><red>Invalid uuid format!"
# Messages for the Bungee/Velocity part, you can ignore them if you use the plugin on Paper/Sponge
sentToWaitingServer: "<prefix><red>You have been sent to a waiting server!"
forceWaitingServer: "<prefix><red>You cannot leave the waiting server while maintenance is enabled!"
serverNotFound: "<prefix><red>No server with this name is registered on the proxy!"
singleTimerAlreadyRunning: "<prefix><red>There is already a timer scheduled for that server!"
singleTimerCancelled: "<prefix><red>The current timer for server <yellow>%SERVER% <red>has been disabled."
singleTimerNotRunning: "<prefix><red>There is currently no running timer for that server."
singleEndtimerBroadcast: "<prefix><gray>Maintenance mode on server %SERVER% will be disabled in <gold>%TIME%<gray>."
singleStarttimerBroadcast: "<prefix><gray>Maintenance mode on server %SERVER% will be enabled in <gold>%TIME%<gray>."
singleScheduletimerBroadcast: "<prefix><gray>Maintenance mode on server %SERVER% will be enabled in <gold>%TIME% <gray>and will last for <gold>%DURATION%<gray>."
singleMaintenanceKick: "<prefix><red>The server %SERVER% is currently under maintenance! Try again later!"
singleMaintenanceKickComplete: "<red>The server %SERVER% is under maintenance!<br>You may try to rejoin to go onto another server!"
singleMaintenanceActivated: "<prefix><gold>Maintenance mode is now activated on server <yellow>%SERVER%<gold>."
singleMaintenanceDeactivated: "<prefix><gold>Maintenance mode is now deactivated on server <yellow>%SERVER%<gold>."
singleServerAlreadyEnabled: "<prefix><red>Maintenance is already enabled on server <yellow>%SERVER%<red>!"
singleServerAlreadyDisabled: "<prefix><red>Maintenance is already disabled on server <yellow>%SERVER%<red>!"
singleServerMaintenanceList: "<prefix><gray>Proxied servers, that have maintenance enabled:"
singleServerMaintenanceListEmpty: "<prefix><gray>There are no proxied servers that are under maintenance."
singleServerMaintenanceListEntry: "<dark_grey>- <aqua>%SERVER%"
second: "second"
seconds: "seconds"
minute: "minute"
minutes: "minutes"
hour: "hour"
hours: "hours"
helpHeader: "<dark_gray>========[ <yellow>%NAME% <dark_gray>| <yellow>%PAGE%/%MAX% <dark_gray>]========"
helpPageNotFound: "<prefix><red>There is no page with that number!"
helpNextPage: "<gray>Use <aqua>/maintenance help %PAGE% <gray>to get to the next help window."
helpAbortTimer: "<gold>/maintenance aborttimer <gray>(If running, the current timer will be aborted)"
helpEndtimer: "<gold>/maintenance endtimer <minutes> <gray>(After the given time in minutes, maintenance mode will be disabled)"
helpStarttimer: "<gold>/maintenance starttimer <minutes> <gray>(After the given time in minutes, maintenance mode will be enabled)"
helpScheduleTimer: "<gold>/maintenance scheduletimer <timer minutes> <maintenance duration> <gray>(After the given time in minutes, maintenance mode will be enabled for the given duration in minutes)"
helpDebug: "<gold>/maintenance debug <gray>(Enables some debug logging)"
helpDump: "<gold>/maintenance dump <gray>(Dumps some server information, used for bug reports)"
helpHelp: "<gold>/maintenance help [page] <gray>(Shows this beautiful help window)"
helpMotd: "<gold>/maintenance motd [timer] <gray>(Lists the currently set maintenance motds. If specifying 'timer', the timer motds are shown)"
helpRemoveMotd: "<gold>/maintenance removemotd [timer] <index> <gray>(Removes a maintenance motd. If using 'timer' as an argument, a timerspecific pingmessage will be removed)"
helpSetMotd: "<gold>/maintenance setmotd [timer] <index> <1/2> <message> <gray>(Sets a motd for maintenance mode. If using 'timer' as an argument, a timerspecific pingmessage will be set)"
helpReload: "<gold>/maintenance reload <gray>(Reloads the config file, whitelist file and the server-icon)"
helpToggle: "<gold>/maintenance <on/off> <gray>(Enables/disables maintenance mode)"
helpUpdate: "<gold>/maintenance update <gray>(Remotely downloads the newest version of the plugin onto your server)"
helpWhitelist: "<gold>/maintenance whitelist <gray>(Shows all whitelisted players for the maintenance mode)"
helpWhitelistAdd: "<gold>/maintenance add <name/uuid> <gray>(Adds the player to the maintenance whitelist, so they can join the server even though maintenance is enabled)"
helpWhitelistRemove: "<gold>/maintenance remove <name/uuid> <gray>(Removes the player from the maintenance whitelist)"
# Messages for the Bungee/Velocity part, you can ignore them if you use the plugin on Paper/Sponge
helpAbortSingleTimer: "<gold>/maintenance aborttimer [server] <gray>(If running, the current timer will be aborted)"
helpSingleEndtimer: "<gold>/maintenance endtimer [server] <minutes> <gray>(After the given time in minutes, maintenance mode will be disabled)"
helpSingleStarttimer: "<gold>/maintenance starttimer [server] <minutes> <gray>(After the given time in minutes, maintenance mode will be enabled)"
helpSingleScheduleTimer: "<gold>/maintenance scheduletimer [server] <timer minutes> <maintenance duration> <gray>(After the given time in minutes, maintenance mode will be enabled for the given duration in minutes)"
helpSingleToggle: "<gold>/maintenance <on/off> [server] <gray>(Enables/disables maintenance mode)"
helpStatus: "<gold>/maintenance status <gray>(Lists all proxied servers, that are currently under maintenance)"
# Used for autoupdating the language file, do not change this value.
language-version: 1
Интеграция с ServerListPlus
Если на вашем сервере установлен плагин ServerListPlus, Maintenance будет переключать его статус. При включении режима обслуживания MOTD ServerListPlus будет отключён, а затем вновь включён при отключении обслуживания, чтобы избежать конфликтов из‑за их взаимного переопределения.
Поддержка MySQL/мульти‑прокси
Доступно только в версии Bungee/Velocity! Включив MySQL в конфигурации, вы можете подключить несколько прокси‑серверов к заданному значению в вашей базе данных, чтобы не приходилось вручную включать/выключать режим обслуживания на каждом прокси!
Хочу выразить небольшую благодарность людям, переводящим сообщения — вы замечательные! Французский: Zendrique Испанский: Vixo_Ulises Польский: Slasherss and EEEGuba Португальский: JoaoPinto Русский: En_0t_S Китайский: yeban
Совместимость Maintenance
Ядра и прокси Minecraft
Поддерживаемые версии Minecraft
- 26.3
- 26.2
- 26.1.2
- 26.1.1
- 26.1
- 1.21.11
- 1.21.10
- 1.21.9
- 1.21.8
- 1.21.7
- 1.21.6
- 1.21.5
- 1.21.4
- 1.21.3
- 1.21.2
- 1.21.1
- 1.21
- 1.20.6
- 1.20.5
- 1.20.4
- 1.20.3
- 1.20.2
- 1.20.1
- 1.20
- 1.19.4
- 1.19.3
- 1.19.2
- 1.19.1
- 1.19
- 1.18.2
- 1.18.1
- 1.18
- 1.17.1
- 1.17
- 1.16.5
- 1.16.4
- 1.16.3
- 1.16.2
- 1.16.1
- 1.16
- 1.15.2
- 1.15.1
- 1.15
- 1.14.4
- 1.14.3
- 1.14.2
- 1.14.1
- 1.14
- 1.13.2
- 1.13.1
- 1.13
- 1.12.2
- 1.12.1
- 1.12
- 1.11.2
- 1.11.1
- 1.11
- 1.10.2
- 1.10.1
- 1.10
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9
- 1.8.9
- 1.8.8
Нажмите на версию, чтобы посмотреть плагины для неё. Для этого плагина подберите сборку по версии Minecraft и ядру.
