Skip to main content

messages.yml

Every message Nexal Restarts sends, with its sounds and menu text. Located at plugins/NexalRestarts/messages.yml, in MiniMessage format. %prefix% is replaced with the prefix at the top of the file.

messages.yml
# ══════════════════════════════════════════════════════════
# NEXAL RESTARTS MESSAGES
# ══════════════════════════════════════════════════════════
# Use find-and-replace in your editor to change colors globally.
#
# PRIMARY: <gradient:#E67E22:#EB984E> (orange)
# SECONDARY: <gradient:#F0B27A:#F5CBA7> (light orange)
# SUCCESS: <gradient:#2ECC71:#52D68A> (green)
# ERROR: <gradient:#FF5252:#FF7070> (red)
# WARNING: <gradient:#FFC107:#FFCD38> (gold)
# INFO: <gradient:#AAAAAA:#BBBBBB> (gray)
# ══════════════════════════════════════════════════════════

# ──────────────────────────────────────────────────────────
# PREFIX
# ──────────────────────────────────────────────────────────

prefix: "<gradient:#E67E22:#EB984E>Restart</gradient> <gray>|</gray> "

# ──────────────────────────────────────────────────────────
# WARNING MESSAGES
# ──────────────────────────────────────────────────────────

# One entry per interval in the "warnings" list of config.yml, keyed by its seconds.
# An interval without its own entry here uses "default".
# Each entry may have: message, title, subtitle, actionbar, sound, volume, pitch,
# fade-in, stay, fade-out. Placeholders: %time% (e.g. 5m)
warnings:
default:
message: "%prefix%<gradient:#F0B27A:#F5CBA7>Server restart in <white><bold>%time%</bold></white>.</gradient>"
sound: "BLOCK_NOTE_BLOCK_PLING"
volume: 1.0
pitch: 1.0

1800:
message: "%prefix%<gradient:#F0B27A:#F5CBA7>Server restart in <white><bold>30 minutes</bold></white>.</gradient>"
sound: "BLOCK_NOTE_BLOCK_PLING"
volume: 1.0
pitch: 1.0

600:
message: "%prefix%<gradient:#F0B27A:#F5CBA7>Server restart in <white><bold>10 minutes</bold></white>.</gradient>"
sound: "BLOCK_NOTE_BLOCK_PLING"
volume: 1.0
pitch: 1.2

300:
message: "%prefix%<gradient:#F0B27A:#F5CBA7>Server restart in <gradient:#E67E22:#EB984E><bold>5 minutes</bold></gradient>!</gradient>"
title: "<gradient:#E67E22:#EB984E><bold>5 MINUTES</bold></gradient>"
subtitle: "<gradient:#F0B27A:#F5CBA7>until server restart</gradient>"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"
fade-in: 10
stay: 40
fade-out: 10

60:
message: "%prefix%<gradient:#E67E22:#EB984E><bold>Server restart in 1 MINUTE!</bold></gradient>"
title: "<gradient:#FF5252:#FF7070><bold>1 MINUTE</bold></gradient>"
subtitle: "<gradient:#F0B27A:#F5CBA7>Server restarting soon!</gradient>"
sound: "ENTITY_ENDER_DRAGON_GROWL"
fade-in: 10
stay: 40
fade-out: 10

30:
message: "%prefix%<gradient:#FF5252:#FF7070><bold>30 SECONDS</bold></gradient> <gradient:#E67E22:#EB984E>until restart!</gradient>"
actionbar: "<gradient:#FF5252:#FF7070><bold>!! 30 SECONDS UNTIL RESTART !!</bold></gradient>"
sound: "BLOCK_NOTE_BLOCK_BASS"
volume: 1.0
pitch: 0.5

# ──────────────────────────────────────────────────────────
# FINAL COUNTDOWN
# ──────────────────────────────────────────────────────────

# Placeholders: %seconds%
final-countdown:
actionbar: "<gradient:#E67E22:#EB984E>Server restart in</gradient> <gradient:#FF5252:#FF7070><bold>%seconds%</bold></gradient> <gradient:#E67E22:#EB984E>seconds!</gradient>"
sound: "BLOCK_NOTE_BLOCK_BASS"
volume: 0.8
pitch: 1.0
title: "<gradient:#FF5252:#FF7070><bold>%seconds%</bold></gradient>"
subtitle: "<gradient:#F0B27A:#F5CBA7>Restarting...</gradient>"
fade-in: 0
stay: 20
fade-out: 0

# ──────────────────────────────────────────────────────────
# RESTART EXECUTION
# ──────────────────────────────────────────────────────────

restarting:
message: "%prefix%<gradient:#E67E22:#EB984E><bold>Server is restarting now!</bold></gradient>"
title: "<gradient:#FF5252:#FF7070><bold>RESTARTING</bold></gradient>"
subtitle: "<gradient:#F0B27A:#F5CBA7>Please reconnect shortly</gradient>"
sound: "ENTITY_WITHER_DEATH"
fade-in: 0
stay: 60
fade-out: 20

kick-message: "<gradient:#E67E22:#EB984E><bold>Server Restart</bold></gradient>\n\n<gradient:#F0B27A:#F5CBA7>The server is restarting.</gradient>\n<gray>Please reconnect in a moment.</gray>\n\n<gradient:#AAAAAA:#BBBBBB>Thank you for your patience!</gradient>"

# ──────────────────────────────────────────────────────────
# COMMAND MESSAGES
# ──────────────────────────────────────────────────────────

# Placeholders: %time%
restart-scheduled:
message: "%prefix%<gradient:#2ECC71:#52D68A>✔ Server will restart in <gradient:#F0B27A:#F5CBA7><bold>%time%</bold></gradient>.</gradient>"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"

restart-scheduled-broadcast:
message: "%prefix%<gradient:#F0B27A:#F5CBA7>Server restart scheduled for <gradient:#E67E22:#EB984E><bold>%time%</bold></gradient> from now.</gradient>"
sound: "BLOCK_NOTE_BLOCK_PLING"

restart-now:
message: "%prefix%<gradient:#E67E22:#EB984E>Initiating immediate server restart...</gradient>"
sound: "BLOCK_NOTE_BLOCK_BASS"

restart-cancelled:
message: "%prefix%<gradient:#2ECC71:#52D68A>✔ Scheduled restart has been cancelled.</gradient>"
sound: "ENTITY_VILLAGER_YES"

restart-cancelled-broadcast:
message: "%prefix%<gradient:#2ECC71:#52D68A>The scheduled restart has been cancelled.</gradient>"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"

# Placeholders: %time%
status:
message: "%prefix%<gray>Next restart:</gray> <gradient:#F0B27A:#F5CBA7>%time%</gradient>"

status-none:
message: "%prefix%<gradient:#AAAAAA:#BBBBBB>No restart currently scheduled.</gradient>"

# ──────────────────────────────────────────────────────────
# ERROR MESSAGES
# ──────────────────────────────────────────────────────────

errors:
no-restart-pending:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ No restart is currently pending.</gradient>"
sound: "ENTITY_VILLAGER_NO"

restart-already-pending:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ A restart is already pending! Use <gradient:#F0B27A:#F5CBA7>/restart admin cancel</gradient> first.</gradient>"
sound: "ENTITY_VILLAGER_NO"

invalid-time:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ Invalid time format. Use: <white>30s</white>, <white>5m</white>, <white>1h</white>, <white>1d</white></gradient>"
sound: "ENTITY_VILLAGER_NO"

time-too-short:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ Time must be at least 5 seconds.</gradient>"
sound: "ENTITY_VILLAGER_NO"

# Sent when an admin GUI button needs a permission the player lacks
no-permission:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ You don't have permission to do this.</gradient>"
sound: "ENTITY_VILLAGER_NO"

# ──────────────────────────────────────────────────────────
# SETTINGS GUI
# ──────────────────────────────────────────────────────────

settings:
enter-cron:
message: "%prefix%<gradient:#AAAAAA:#BBBBBB>Type a cron expression in chat, e.g. <white>0 4 * * *</white> for daily at 04:00. Type <white>cancel</white> to go back.</gradient>"
sound: "UI_BUTTON_CLICK"

invalid-cron:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ That is not a valid cron expression. Try again, or type <white>cancel</white>.</gradient>"

enter-timezone:
message: "%prefix%<gradient:#AAAAAA:#BBBBBB>Type a timezone in chat, e.g. <white>Europe/London</white> or <white>UTC</white>. Type <white>cancel</white> to go back.</gradient>"
sound: "UI_BUTTON_CLICK"

invalid-timezone:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ That is not a known timezone. Try again, or type <white>cancel</white>.</gradient>"

# Placeholders: %setting%, %value%
updated:
message: "%prefix%<gradient:#2ECC71:#52D68A>✔ %setting% set to <gradient:#F0B27A:#F5CBA7>%value%</gradient>.</gradient>"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"

# ──────────────────────────────────────────────────────────
# PROXY SYNC MESSAGES
# ──────────────────────────────────────────────────────────

sync:
disabled:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ Proxy sync is not enabled in config.</gradient>"
sound: "ENTITY_VILLAGER_NO"

schedule-sent:
message: "%prefix%<gradient:#2ECC71:#52D68A>✔ Schedule synced to all connected servers.</gradient>"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"

# Placeholders: %time%
restart-sent:
message: "%prefix%<gradient:#2ECC71:#52D68A>✔ Restart command (<gradient:#F0B27A:#F5CBA7>%time%</gradient>) synced to all servers.</gradient>"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"

cancel-sent:
message: "%prefix%<gradient:#2ECC71:#52D68A>✔ Cancel command synced to all servers.</gradient>"
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"

no-secret:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ Set <white>proxy-sync.secret</white> in config.yml, the same on every server, to use proxy sync.</gradient>"
sound: "ENTITY_VILLAGER_NO"

failed:
message: "%prefix%<gradient:#FF5252:#FF7070>✘ Failed to sync - no players online to send through proxy.</gradient>"
sound: "ENTITY_VILLAGER_NO"

# Sent to online players with nexalrestarts.admin when another server's sync arrives

# Placeholders: %server%
received-schedule:
message: "%prefix%<gradient:#AAAAAA:#BBBBBB>Received schedule update from <gradient:#F0B27A:#F5CBA7>%server%</gradient>.</gradient>"

received-restart:
message: "%prefix%<gradient:#AAAAAA:#BBBBBB>Received restart command from <gradient:#F0B27A:#F5CBA7>%server%</gradient>.</gradient>"

received-cancel:
message: "%prefix%<gradient:#AAAAAA:#BBBBBB>Received cancel command from <gradient:#F0B27A:#F5CBA7>%server%</gradient>.</gradient>"