Build 38 changelog (config.yml additions below):
Addition: You can now add a check for <configurable seconds> before the restart to check if <configurable amount> players are online at the time and then delay the restart by <configurable seconds>.
Configuration Additions:
Code (Text):
# delayRestart Notes:
# 1. Enabling this sytem will check <configurable time> seconds before restart if there are <x> players online, if there are it'll delay the restart by <configurable time> seconds.
# 2. minimumPlayers: 10 ---> This means that if there are 10 or more players online it'll delay the restart.
# 3. MAKE SURE THAT YOUR checkSecondsBeforeRestart AND delaybySeconds VALUES DO NOT INTERFERE WITH restartCommands ENTRIES!
# 4. informUsersWithPermission ---> Whether or not to send a message to users with "uar.notifydelay" that a delay happened.
delayRestart:
enabled: true
checkSecondsBeforeRestart: 30
minimumPlayers: 1
delayBySeconds: 600
informUsersWithPermission: true
delayNotification:
- '&7[UltimateAutoRestart] The restart has been delayed due to exceeding the online players threshold!'