SCUM Server restarts and notifications

Материал из Википедия XLGAMES
Перейти к навигации Перейти к поиску

Restart Warnings on a SCUM Server (XLGAMES.GG)

On XLGAMES.GG hosting, server restarts and pre-restart messages are configured very simply:

  • Restart times are set through the Task Scheduler tab.
  • Text warnings before a restart are configured in the Notifications.json file through the Config Editor tab (you do NOT need to restart the server for these notifications to take effect).
  • Time must be entered in 24-hour format, not in AM/PM format.

At the end of this page, you will find a ready-to-use Notifications.json example for restarts every 4 hours starting at 00:00.

Need your own SCUM server? Order one at XLGAMES.GG.


1) Set restart times in the “Task Scheduler”

  1. Open the Task Scheduler tab.
Where to open the “Task Scheduler” tab
Where to open the “Task Scheduler” tab
  1. Create tasks for the required times (for example: 00:00, 04:00, 08:00, 12:00, 16:00, 20:00) with the action “Restart Server”.
Creating restart tasks for 00:00, 04:00, 08:00, 12:00, 16:00, and 20:00
Creating restart tasks for 00:00, 04:00, 08:00, 12:00, 16:00, and 20:00

Tip: use the server time (the time zone of the region where your game server is located). Adjust the schedule if needed for your own region.


2) Enable pre-restart warnings through Notifications.json

  1. Open the Config Editor tab.
The “Config Editor” tab
The “Config Editor” tab
  1. In the file list, open Notifications.json.
Opening the Notifications.json file
Opening the Notifications.json file
  1. By default, it is empty:
{
  "Notifications": [
  ]
}
Opening Notifications.json
Opening Notifications.json

Paste the example below (or adjust it to match your own schedule) and save the file. Important: you do not need to restart the server — changes take effect in real time.


Example restart warnings (every 4 hours starting from 00:00)

Messages are shown 10, 5, 4, 3, 2, and 1 minute before the restart. The color is set as R-G-B.

{
  "Notifications": [
    {
      "time": ["0:50","4:50","8:50","12:50","16:50","20:50"],
      "duration": "5",
      "color": "255-255-255",
      "message": "Server restart in 10 minutes"
    },
    {
      "time": ["0:55","4:55","8:55","12:55","16:55","20:55"],
      "duration": "5",
      "color": "0-204-204",
      "message": "Server restart in 5 minutes"
    },
    {
      "time": ["0:56","4:56","8:56","12:56","16:56","20:56"],
      "duration": "5",
      "color": "0-204-0",
      "message": "Server restart in 4 minutes"
    },
    {
      "time": ["0:57","4:57","8:57","12:57","16:57","20:57"],
      "duration": "5",
      "color": "255-255-0",
      "message": "Server restart in 3 minutes"
    },
    {
      "time": ["0:58","4:58","8:58","12:58","16:58","20:58"],
      "duration": "5",
      "color": "255-128-0",
      "message": "Server restart in 2 minutes"
    },
    {
      "time": ["0:59","4:59","8:59","12:59","16:59","20:59"],
      "duration": "5",
      "color": "255-0-0",
      "message": "Server restart in 1 minute"
    }
  ]
}
Example of a completed Notifications.json file for restart warnings
Example of a completed Notifications.json file for restart warnings

Done! The scheduler will restart the server at the specified times, and Notifications.json will show clear advance warnings to players without requiring a server restart for the changes to apply.

Extra: the color parameter in Notifications.json

The "color" field sets the text color of the notification and accepts a string in the R-G-B format (red–green–blue), where each value is a number from 0 to 255.

  • The separator is a hyphen: "255-255-255".
  • Invalid formats (will not work): "255,255,255", "rgb(255,255,255)", "255 255 255".

Ready-to-use color values

  • White — 255-255-255
  • Red — 255-0-0
  • Orange — 255-128-0
  • Yellow — 255-255-0
  • Green — 0-204-0
  • Cyan — 0-204-204
  • Blue — 0-128-255
  • Purple — 153-0-204
  • Pink — 255-105-180
  • Gray — 160-160-160

Mini JSON example with different colors

{
  "Notifications": [
    { "time": ["12:50"], "duration": "5", "color": "255-255-0", "message": "Server restart in 10 minutes" },
    { "time": ["12:58"], "duration": "5", "color": "255-128-0", "message": "Server restart in 2 minutes" },
    { "time": ["12:59"], "duration": "5", "color": "255-0-0",  "message": "Server restart in 1 minute" }
  ]
}

Notes

  • Values outside the 0–255 range may display incorrectly.
  • "duration" is the display duration of the message in seconds.

Order SCUM hosting here: XLGAMES.GG.