Auto Backup Warning #7413
TheGoodFellaOG
started this conversation in
General
Replies: 1 comment
-
"%now%" returns a full date as string like "1.2.2025 19:30" so it will never be equal to "00:00" time is used for world times, not real life you should be using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
every 5 minutes:⚠️ The server will shut down at 00:19 for a backup. Please save your work! ⚠️ "⚠️ 10 minutes until the shutdown! Save your progress! ⚠️ "⚠️ 5 minutes until the shutdown! Stop crafting or building to avoid data loss! ⚠️ "⚠️ FINAL WARNING: The server will shut down in 1 minute! ⚠️ "⚠️ The server is shutting down now for a backup! ⚠️ "
if time is "23:53":
broadcast "&e
if time is "00:09":
broadcast "&c
if time is "00:14":
broadcast "&c
if time is "00:18":
broadcast "&c
if time is "00:19":
broadcast "&c
and
options:
backupTime: "00:19"
warningInterval: 5 minutes
variables:⚠️ The server will shut down at 00:19 for a backup. Please save your work! ⚠️ "⚠️ 10 minutes until the shutdown! Save your progress and finish your tasks! ⚠️ "⚠️ 5 minutes until the shutdown! Stop building or crafting to avoid data loss! ⚠️ "⚠️ FINAL WARNING: The server will shut down in 1 minute! ⚠️ "⚠️ The server is shutting down now for a backup! ⚠️ "
{backup.warning.1} = "&e
{backup.warning.2} = "&c
{backup.warning.3} = "&c
{backup.warning.4} = "&c
{backup.shutdown} = "&c
every {@warningInterval}:
if "%now%" is "23:59":
broadcast {backup.warning.1}
if "%now%" is "00:09":
broadcast {backup.warning.2}
if "%now%" is "00:14":
broadcast {backup.warning.3}
if "%now%" is "00:18":
broadcast {backup.warning.4}
if "%now%" is {@BackupTime}:
broadcast {backup.shutdown}
execute console command "save-all"
execute console command "stop"
Hello
I’ve tried implementing two different backup scripts for my Minecraft server, but neither is functioning as expected. The warnings don’t trigger at the specified times, and I’m unable to identify the issue. I’ve verified the server time and configurations, but I’m stuck and could use some guidance on resolving this.
Thank you for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions