CHRON [Open Source] 1.5

Highly configurable CHRON jobs that support in-game and shell commands.

  1. Miles
    CHRON

    View the source
    What it does
    CHRON allows you to schedule repeating tasks, that support both shell (command-line) and in-game commands.

    Why not use UNIX jobs?
    Because you might be trapped behind a server panel, or you want easy access to game commands.

    How do I use it?
    Everything is in the configuration file. With /chron, you can run jobs and check the status of jobs.

    Usage: /chron [job]

    Permissions:
    • chron.runjobs : access to the /chron command
    • chron.runall : run all jobs
    • chron.job.<jobname> : run specific job

    Code (Text):
    jobs:
      backup:
        interval:
          start: 1445796463610 # The epoch time of the start date. Need help? Use http://currentmillis.com/
          every: 600 # The interval to repeat, in seconds.
        commands:
          - g:say Server backup starting!                                         # g: means that it's a game command.
          - g:zip . ./backups/{epoch}-backup.zip                                  # the 'zip' command is a feature of wget, a premium spigot plugin
          - g:say Server backup completed!                                        # everything after the colon is the command to execute
          - s:mv ~/ServerDirectory/backup/{epoch}-backup.zip ~/GoogleDriveFolder/backups/{epoch}-backup.zip # s: means it's a shell command
          # Remember, these will run in sequence!
    # Dont want it to repeat? Set 'every' to a negative number.

    # Variables: {epoch} (milliseconds since Jan. 1 1970 UTC)


    data:
     

Recent Updates

  1. Added /chron

Recent Reviews

  1. brainy_smurf
    brainy_smurf
    5/5,
    Version: 1.5
    Works awesome in 1.8, a vital function that opens up some AMAZING possibilities. Please add 1.7.10 support, that would be epic.