Jump to content

Part day

Closed 1.0.0

Terskipia
Terskipia

Posted

How can I have this setup so that it only unloads a plugin on Friday between 12am to 4pm?

kasvoton

Posted

Hi 👋 

You must do it into two actions, the unloading part: 0 0 * * 5 oxide.unload xyz and then the loading part: 0 16 * * 5 oxide.load xyz

The syntax is minute, hour, day, month, dow, command.

Terskipia

Posted

Do you have a config file for this? I dont know much about this lol?

kasvoton

Posted

I’m on a mobile phone it’s hard to give the exact json file but I will do it later today when at the PC.

kasvoton

Posted

{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.unload xyz"
},
{
  "Minute": "0",
  "Hour": "16",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.load xyz"
}

 

kasvoton

Posted

Changed Status from Pending to Not a Bug

Terskipia

Posted

So I need it where at 12am est friday one of my plugins unloads then it runs commands until 4pm est time. Then at 4pm it loads the plugin back.

Terskipia

Posted

Keep getting this error?

Scheduler v1.0.0: Failed to load config file (is the config file corrupt?) (Additional text encountered after finished reading JSON content: ,. Path '', line 8, position 1.) 

Here is the config file.

{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.unload MapSplit"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "audio.message sendall soundname"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "Say The Purge has started!. All crime including RAIDING AND PVP is allowed for the next 16hrs. May Sation be with you."
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "time 8.2"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "fog 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "rain 100"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "rainbow 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "Thunder 100"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "wind 100"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.atmosphere_rayleigh 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.atmosphere_mie 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.atmosphere_brightness 0"
},
{
  "Minute": "0",
  "Hour": "16",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.load MapSplit"
},
{
  "Minute": "0",
  "Hour": "16",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.clear_chance 1"
}

kasvoton

Posted

I’m abroad for professional reasons, I will get back to your questions as soon as possible. I guess there is something wrong with the config but I need to load it on a proper validator rather then the phone.

 

dow is day of the week.

kasvoton

Posted

{
  "Cron": [
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "oxide.unload MapSplit"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "audio.message sendall soundname"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "Say The Purge has started!. All crime including RAIDING AND PVP is allowed for the next 16hrs. May Sation be with you."
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "time 8.2"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "fog 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "rain 100"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "rainbow 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "Thunder 100"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "wind 100"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_rayleigh 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_mie 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_brightness 0"
    },
    {
      "Minute": "0",
      "Hour": "16",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "oxide.load MapSplit"
    },
    {
      "Minute": "0",
      "Hour": "16",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.clear_chance 1"
    }
  ]
}

 

Terskipia

Posted

So I need this to be active on friday but its thursday and its active how to fix

kasvoton

Posted

0. Sunday
1. Monday
2. Tuesday
3. Wednesday
4. Thursday
5. Friday
6. Saturday

    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_brightness 0"
    },

The following config means: execute the rcon command "weather.atmosphere_brightness 0" on a Friday at 0:00.

Terskipia

Posted

This wont work for me since at 4pm I want it to load my plugin back and reset the weather back to normal but instead its trying to run both for friday

Terskipia

Posted

So it keeps starting on Thursday why is that?

kasvoton

Posted

Changed Status from Not a Bug to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

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.