Jump to content

Timed Commands 0.0.8

$4.00
   (1 review)

1 Screenshot

Works with

About Timed Commands

Execute console commands daily or weekly at specific times of day, or at specific dates, with optional multiple Discord messages support and configurable server clock offset.

 

Config:

{
  "Offset": "00:00:00:00.0000000",
  "InitCommands": [
    "oxide.unload PluginA",
    "oxide.unload PluginB"
  ],
  "Timers": [
    {
      "Time": "17:00:00",
      "DayOfWeek": 0,
      "Commands": [
        "oxide.unload PluginC",
        "oxide.unload PluginD"
      ],
      "DiscordMessages": null
    },
    {
      "Time": "6PM",
      "DayOfWeek": 6,
      "Commands": [
        "oxide.unload PluginC",
        "oxide.unload PluginD"
      ],
      "DiscordMessages": null
    },
    {
      "Time": "09/29/2022 19:00:00",
      "DayOfWeek": null,
      "Commands": [
        "oxide.unload PluginC",
        "oxide.unload PluginD"
      ],
      "DiscordMessages": null
    },
    {
      "Time": "09/30/2022 8PM",
      "DayOfWeek": null,
      "Commands": [
        "oxide.load PluginC",
        "oxide.load PluginD"
      ],
      "DiscordMessages": [
        {
          "webhook": "",
          "username": "My Untitled Rust Server",
          "avatar_url": "",
          "content": "```{0}```"
        }
      ]
    }
  ]
}

 

Offset               - Amount of time to offset server time from real time, represented by a TimeSpan format string.

                               If your server's clock is 1 day 10 hours 2 minutes 33 seconds and 444.5555 miliseconds ahead use "-01:10:02:33.4445555"

                               If your server's clock is 1 day 10 hours 2 minutes 33 seconds and 444.5555 miliseconds behind use "01:10:02:33.4445555"

 

InitCommands - List of commands to execute when the server starts up or when the plugin is loaded.

 

Timers

                             Time                       - A time represented by a TImeSpan format string, or a date represented by a DateTime format string.

                             DayOfWeek          - A day of the week represented by a DayOfWeek Enum value ranging from 0 (Sunday) to 6 (Saturday).

                                                                  If a value is used the timer will run weekly, else the timer will run daily. Only used by TimeSpan format timers.

                             Commands           - List of commands to execute when the timer fires.

                             DiscordMessages - List of Discord messages to send when the timer fires, each with its own webhook. Requires DiscordMessageAPI

  • Love 1

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.5k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.