Resource icon

Rcon Scheduler 1.1

No permission to download
This plugin allows you to schedule RCON commands to run exactly when you need them to. You can set them to run when the server starts, every X minutes, every X hours or at an exact time during the day.

Dependencies:
Command:
  • RconScheduler.Reload
    • This will reload the config and restart the schedules as if the server was just started.
    • This command only works from RCON
Configuration:
JSON:
{
    "RCON":{
        "IP":"127.0.0.1",
        "PORT":32000,
        "PASS":"yourpass"
    },
    "Commands":[
        {
            "Command":"serverchat test message at 2:41pm!",
            "Type":"Exact",
            "Schedule":"14:41:00"
        },
        {
            "Command":"serverchat test message at 2:40:02pm!",
            "Type":"Exact",
            "Schedule":"14:40:02"
        },
        {
            "Command":"serverchat test message at 2:40pm!",
            "Type":"Exact",
            "Schedule":"14:40:00"
        },
        {
            "Command":"broadcast hello world every 1 minute!",
            "Type":"Minutes",
            "Schedule":1
        },
        {
            "Command":"broadcast hello world every 1 hour!",
            "Type":"Hours",
            "Schedule":1
        },
        {
            "Command":"DestroyAll BeeHive_C",
            "Type":"Minutes",
            "Schedule":5
        },
        {
            "Command":"serverchat test message every 3 minutes",
            "Type":"Minutes",
            "Schedule":3
        },
        {
            "Command":"destroyall droppeditemgeneric_fertilizedegg_nophysicsdeinonychus_c",
            "Type":"Startup"
        },
        {
            "Command":"destroyall droppeditemgeneric_fertilizedegg_nophysicswyvern_c",
            "Type":"Startup"
        },
        {
            "Command":"destroyall droppeditemgeneric_fertilizedegg_nophysicscherufe_c",
            "Type":"Startup"
        },
        {
            "Command":"destroyall droppeditemgeneric_fertilizedegg_rockdrake_nophysics_c",
            "Type":"Startup"
        },
        {
            "Command":"serverchat",
            "Type":"Minutes",
            "Schedule":5,
            "Sender":"Test",
            "Message":"This appears every 5 minutes enjoy!"
        },
        {
            "Command":"notification",
            "Type":"Minutes",
            "Schedule":3,
            "Message":"This appears every 3 minutes enjoy!",
            "Color":[0,1,1,1],
            "DisplayTime":10.0,
            "DisplayScale":1.3
        }
    ]
}

Detailed Configuration Info:
RCON:
  • IP = Server IP you should be able to leave this at 127.0.0.1
  • PORT = The port you have RCON running for this server
  • PASS = Your server admin password
Commands:
  • Command = RCON command example "DestroyAll BeeHive_C"
  • Type = What type of schedule
    • "Exact" will run at the specified time in the "Schedule" setting. If the time is already past this command will execute the next day at the specified time.
    • "Hours" will run every X hours from the time the server started until the server shutsdown.
    • "Minutes" will run every X minutes from the time the server started until the server shutsdown.
    • "Startup" will run once when the server is started.
  • Schedule = This is dependent on the "Type" setting.
    • Exact Example = "14:22:00" this would run at 2:22pm it must be in this format including the seconds.
    • Hours and Minutes you would just set a number like 5
    • Startup does not use this.
Added 2 new messaging commands:
  • "notification" - Displays notification style popup message at the top of the screen.
    • JSON:
              {
                  "Command":"notification",
                  "Type":"Minutes",
                  "Schedule":3,
                  "Message":"This appears every 3 minutes enjoy!",
                  "Color":[0,1,1,1],
                  "DisplayTime":10.0,
                  "DisplayScale":1.3
              }
  • "serverchat" - Using this command alone (not specifying a message in the command) opens up additional options.
    • JSON:
              {
                  "Command":"serverchat",
                  "Type":"Minutes",
                  "Schedule":5,
                  "Sender":"Test",
                  "Message":"This appears every 5 minutes enjoy!"
              }
I provided many examples in the default config which you need to update or you will spam your server with test messages.

NOTES: This plugin does not support plugins.unload feature in the API. RCON commands are executed one at a time in a single file line so be aware if you put many commands in a short time span.

Donations: If you feel like donating for my time please use the button below.



Discord: Lethal's API Plugins Discord
Author
Lethal
Downloads
102
Views
102
First release
Last update
Rating
5.00 star(s) 3 ratings

More resources from Lethal

Latest updates

  1. Rcon Scheduler v1.1

    Config Reloading is now enabled through RCON use "RconScheduler.Reload" Added 2 new messaging...

Latest reviews

Great plugin, thank you Lethal.
GOOD
good work
Top