Task Scheduler in Game Hosting

140

What is a Task Scheduler

Sometimes, you need to perform certain actions automatically, at regular intervals or at a specific time. For example, restarting a Minecraft game server twice a day to clear the used RAM so it doesn't crash due to a lack of memory. Alternatively, you might need to send a command to the server, such as broadcasting donation messages. While there are plenty of plugins available to automate these actions, if you're hosting your Minecraft server with the gaming host MajorCore, it's much easier to use the built-in task scheduler in the control panel.

Steps to Execute

  1. Go to the gaming hosting control panel and log into your account. On the main page, select the server for which you want to schedule actions.

    Panel
    Panel
  2. Next, select the "Schedules" tab from the top menu.

    Schedules
    Schedules
  3. Click on the "Create schedule" button.

    Create Schedule
    Create Schedule
  4. In the "Schedule name" field, enter a descriptive name for the schedule so you can easily identify it among others you create.

    • Next, you need to choose the days and times when this task should be executed.
      • In "Minute", write the minute at which the task should be executed. If it should run every minute, write *.
      • In "Hour", write the hours when the task should be executed. If it needs to run every hour, write *. For example, for every 4 hours, write */4.
      • In "Day of month", you can specify the day (by count) when the task should run. If it needs to run every day, write *.
      • In "Month", you can specify the month (by count) when the task should run. If it needs to run every month, write *.
      • In "Day of week", you can explicitly specify the day of the week when you want to execute the task. If it needs to run every day, write * in the field below the list. If, for example, it should run every 2 days, write */2. If only on Monday, write 1; for Wednesday, write 3; for Sunday, write 0.
    • Examples of setup are discussed in the next section of this article.
    • "Only when server is online" means the task will only be executed when the server is on.
    • "Schedule enabled" means this task is enabled and will run when the time comes.
    Schedule Settings
    Schedule Settings
  5. Now you need to set the tasks that the created schedule will execute. On the schedules page, select the one for which you want to set tasks (which was created in the previous step).

    Tasks
    Tasks
  6. Now click the "New task" button to add a new task to the scheduler.

    New Task
    New Task
  7. In the opened window, you need to choose the type of task:

    • "Send command" – send a command to the console, as you are used to doing it yourself. For example, say Hello.
    • "Send power action" – perform an operation regarding the server (turn off/on/restart).
    • "Create backup" – create a backup, as is done manually on the "Backups" tab.
    Task Types
    Task Types
  8. We need to restart the server, so in the previous step, we selected "Send power action". In the "Payload" dropdown menu, we need to select "Restart the server", if we want to restart it.

    Restart Action
    Restart Action

Examples of Setting Task Execution Times

  1. Every day at 00:00:

    Example 1
    Example 1
  2. Every Monday at 10:00 AM:

    Example 2
    Example 2
  3. Every day, every 4 hours:

    Example 3
    Example 3

Note

On all our servers, the time zone is GMT+3 in summer and GMT+2 in winter – i.e., the time in Kyiv. Daylight saving time matches the time in Moscow.

We value your privacy

We use cookies and process your IP address to personalize content, detect your location for regional pricing, analyze site traffic, and show relevant ads. We share data with our analytics and advertising partners. Click "Accept All" to consent to all cookies, or "Reject All" to decline non-essential cookies. Some essential cookies will always be used for the site to function. Learn more in our Privacy Policy