Config ‐ Overtime schedule - Rosstail/Karma GitHub Wiki

Disabled by default, this feature will alter the karma of every connected player over time.

This is useful if you want to periodically change the karma of a player or trigger commands, with optional requirements.

#config.yml

overtime:
  enable: true
  loops:
    loopName: #name it however you want
      timers:
        first: <long>
        next: <long>
      requirements:
        karma:
          minimum: <float> #Ignored if empty
          maximum: <float> #ignored if empty
        online: <boolean> #true by default
        offline: <boolean> #false by default
      amount: <float> #0 by default. If offline is true, applies for every delay reached
      commands: #ignored if empty. If offline is true, applies only once on reconnection.
        - command1
        - etc...

You can create as many loop as you want.

You can put timers (in seconds). First timer will be used, then Next timer until a reset happens. You can apply requirements such as :

  • The minimum and/or maximum karma of player). (ignored if empty)
  • Player must be connected (true by default)
  • Player must be disconnected (false by default). If true, it will apply the karma changes for each accomplished schedule, and only once by the commands. (if the periods are 15 minutes, a player disconnected for 1 hour will be affected 4 times by the karma change. And commands will be sent once.
  • If both connected and disconnected are true, it will work everytime. Put an amount of karma to add / remove.

Upon an overtime reset (From fights, karma edit commands), the first delay to be used will be timer.first. After that, the timer used will be timer.next (or timer.first if empty). Disconnection will NOT reset the overtime delays.

⚠️ **GitHub.com Fallback** ⚠️