Sueta

CommandTimers

1.1

Lets you run commands after a delay

·Plugin

CommandTimers
This plugin lets you run commands at certain point in time (e.g. to clear mobs every 20 minutes). The plugin is fully customisable through the config.yml file, and all timers can be changed in the data.yml file.

NOTE: When creating timers, the units for the 'time' option are:
d - days
h - hours
m - minutes
s - seconds
e.g. 30m
e.g.2. 67s

Commands (/commandtimers has the alias /ct):
/commandtimers help
/commandtimers list
/commandtimers enable
/commandtimers disable
/commandtimers reload
/commandtimers every {time} {command}
/commandtimers once {time} {command}
/commandtimers remove

Permissions:
commandtimers.help - Access to /commandtimers help
commandtimers.list - Access to /commandtimers list
commandtimers.enable - Access to /commandtimers enable
commandtimers.disable - Access to /commandtimers disable
commandtimers.reload- Access to /commandtimers reload
commandtimers.every- Access to /commandtimers every
commandtimers.once- Access to /commandtimers once
commandtimers.remove- Access to /commandtimers remove

Config File:

timers: 
  # Logs (to the console) all timers that went off while the server was offline 
  # May cause lots of unwanted msgs on server start. 
  logOffline: false 
  # Continues once timers (if it hasn't already happened) after server restart (advised) 
  continueOnce: true 
messages: 
  disabledOnStartup: 
    - "[CommandTimers] *CommandTimers is disabled.*" 
    - "[CommandTimers] *Run /commandtimers enable.*" 
  help: 
    - "&dCommandTimers &7&l>> &eCommands &b(/commandtimers has the alias /ct):" 
    - "&7&l>> &b/commandtimers help" 
    - "&7&l>> &b/commandtimers list" 
    - "&7&l>> &b/commandtimers enable" 
    - "&7&l>> &b/commandtimers disable" 
    - "&7&l>> &b/commandtimers reload" 
    - "&7&l>> &b/commandtimers every {time} {command}" 
    - "&7&l>> &b/commandtimers once {time} {command}" 
    - "&7&l>> &b/commandtimers remove" 
  nopermission: 
    - "&4You do not have access to that command." 
  reload: 
    - "&dCommandTimers &7&l>> &bYou reloaded CommandTimers." 
  disabled: 
    - "&dCommandTimers &7&l>> &aYou disabled all timers." 
  alreadyDisabled: 
    - "&dCommandTimers &7&l>> &cTimers are already disabled!" 
  enabled: 
    - "&dCommandTimers &7&l>> &aYou enabled all timers." 
  alreadyEnabled: 
    - "&dCommandTimers &7&l>> &cTimers are already enabled!" 
  every: 
    - "&dCommandTimers &7&l>> &aYou made a timer to run &e%cmd% &aevery &e%time%&a." 
  once: 
    - "&dCommandTimers &7&l>> &aYou made a timer to run &e%cmd% &ain &e%time%&a." 
  alreadyExists: 
    - "&dCommandTimers &7&l>> &cThat timer already exists!" 
  invalidTime: 
    - "&dCommandTimers &7&l>> &cThat's an invalid time (units are d, h, m, s. e.g. 3h)!" 
  onceHeader: 
    - "&dCommandTimers &7&l>> &bAll 'once' timer commands:" 
  everyHeader: 
    - "&dCommandTimers &7&l>> &bAll 'every' timer commands:" 
  remove: 
    alreadyRemoved: 
      - "&dCommandTimers &7&l>> &cThat timer has already been removed!" 
    onceDone: 
      - "&dCommandTimers &7&l>> &bYou deleted the 'once' timer that runs &e%cmd% &bafter &e%time%&a." 
    everyDone: 
      - "&dCommandTimers &7&l>> &bYou deleted the 'every' timer that runs &e%cmd% &bevery &e%time%&a." 
    console: 
      - "&cConsole must use /commandtimers remove {every|once} {index}" 
      - "&c(Index can be found in data.yml file)" 
    fullMsg: 
      - "&7Time: &e%time% &7| Time Left: &e%time_left% &7| Command: &e%cmd%." 
    # Using the & symbol will not change the clickMsg's color. 
    clickMsg: 
      msg: "Click to remove the timer above." 
      chatColor: "GOLD" 
      bold: false 
      italic: false 
    hoverMsg: 
      msg: "Click to remove this timer." 
      chatColor: "GRAY" 
      bold: false 
      italic: true 
      bold: false

Future Updates:
Add a timer for the day-night cycle.

Known Bugs:
None

Similar projects

Plugin →