Schedules let you run panel actions automatically, such as restarting the server, sending a console command, or creating a backup.

Create the schedule

  1. Open your server in the Ptero control panel, then open Schedules.
  2. Click Create schedule.
  3. Enter a Schedule Name so you can recognise what the schedule is for.
  4. Choose a Frequency. For most schedules, use one of the preset options such as Every Hour, Daily at Midnight, or Weekly on Monday at 1 AM.
    Only When Server Is Online means the schedule will only run while the server is already running.
    Schedule Enabled means the schedule will run automatically. Turn this off if you want to create the schedule now but enable it later.

    Create schedule form with frequency presets on the Ptero control panel

  5. Only use Advanced Mode if you need custom cron timing. Advanced Mode lets you set Minute, Hour, Day of Month, Month, and Day of Week manually. For more detail, see: How cron schedule syntax works.

    Advanced Mode cron fields on the Ptero schedule form

  6. Click Create schedule.

 

Add a task

  1. Open the schedule you created.
  2. Click New Task.

    Schedule detail page with New Task button on Ptero

  3. Choose the Action you want the schedule to run: Send command, Send power action, or Create backup.
    If you are using a command task, make sure the command is valid for the game or server software you are running.
  4. Use Time Offset if this task should wait after a previous task. For the first task, this can normally stay as 0.
  5. Enable Continue on Failure only if later tasks should still run when this task fails.
  6. Click Create Task.

    Create task form on a Ptero schedule

 

Example: scheduled restart with a warning

A common use for schedules is restarting a Minecraft server after warning players first. You can do this by adding more than one task to the same schedule.

  1. Add a Send command task with a warning command, such as a broadcast message telling players the server will restart soon.
  2. Add a Send power action task after it and set the Time Offset to the number of seconds you want to wait. For example, use 300 to wait 5 minutes.
  3. Set the power action to Restart.

The schedule will run the warning first, wait for the time offset, then restart the server. You can use the same idea for other chained tasks, such as running a save command before restarting.

  • 0 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

Setting up Scheduled Tasks in TCAdmin

Log into your control panel. Enter Schedule Tasks, create a new one and choose the...

How to add sub-users in TCAdmin

Log into TCAdmin. Enter Sun Users, found under User Management. Select new, and in...

How to Increase how many players can join your Minecraft Server or Game Server

Expanding server slots is a key step in enhancing your game server's capacity, allowing more...

How to Report Abuse on Services Hosted by LogicServers

At LogicServers, we prioritize maintaining a safe and secure online environment for all our...

Feedback and Complaints Submission

We strive to provide the best service possible, we can only improve on our services with valid...