CMI PlayTime Rewards

Jul 13, 2018
CMI PlayTime Rewards
  • [​IMG]
    Playtime rewards is a system when you can perform commands when player accumulates particular amount of playtime on server. You can perform command for every X seconds or for X seconds in total. So you can make regular payments for each 1 hour playtime and give bigger reward for 6 hours in total or even for 24 hours.
    Default command /cmi prewards alias is enabled by default and its /prewards which will show playtime reward list where you can check upcoming rewards and claim some.

    [​IMG]

    Default example:
    Code (Text):
    hourly1:
      DisplayName: "&7Hourly reward"
      AutoClaim: true
      Description:
      - "&2Get reward for every hour you are online"
      - "&2Free heal and 20 bucks into your pocket"
      PayEvery: 3600
      Commands:
      - asConsole! cmi heal [playerName] -s
      - asConsole! cmi money give [playerName] 20
    daily1:
      DisplayName: "&7Daily reward"
      AutoClaim: true
      Description:
      - "&2Get reward for every 24 hours of playtime"
      - "&22000 bucks into your pocket!"
      PayEvery: 86400
      Commands:
      - asConsole! cmi money give [playerName] 2000
    1hour:
      DisplayName: "&fOne hour reward"
      AutoClaim: false
      Description:
      - "&2Get reward for 1 hour you have been online"
      - "&2500 bucks into your pocket!"
      PayFor: 3600
      Commands:
      - asConsole! cmi money give [playerName] 500
    6hour:
      DisplayName: "&f6 hour reward"
      AutoClaim: false
      Description:
      - "&2Get reward for 6 hour's you have been online"
      - "&22 000 bucks into your pocket!"
      PayFor: 21600
      Commands:
      - asConsole! cmi money give [playerName] 2000
    12hour:
      DisplayName: "&f12 hour reward"
      AutoClaim: false
      Description:
      - "&2Get reward for 12 hour's you have been online"
      - "&25 000 bucks into your pocket!"
      PayFor: 43200
      Commands:
      - asConsole! cmi money give [playerName] 5000
    24hour:
      DisplayName: "&f24 hour reward"
      AutoClaim: false
      Description:
      - "&2Get reward for 24 hour's you have been online"
      - "&215 000 bucks into your pocket!"
      PayFor: 86400
      Commands:
      - asConsole! cmi money give [playerName] 15000
    7days:
      DisplayName: "&f7 day reward"
      AutoClaim: false
      Description:
      - "&2Get reward for 7 days you have been online"
      - "&250 000 bucks into your pocket!"
      PayFor: 604800
      Commands:
      - asConsole! cmi money give [playerName] 50000
    30days:
      DisplayName: "&f30 day reward"
      AutoClaim: false
      Description:
      - "&2Get reward for 30 days you have been online"
      - "&2500 000 bucks into your pocket!"
      PayFor: 2592000
      Commands:
      - asConsole! cmi money give [playerName] 500000
    In example "hourly1" is some unique identification for that playtime reward (further will be know as PTR). You can make it anything you want, but it should be different for each PTR.
    DisplayName - will define name which will be shown in reward list. You can use color codes to separate ones from others. Can be anything you want.
    AutoClaim - Will define if reward will be given out automatically to player when he reaches target, or he will have to claim it manually. If its manual, then player gets reminder every X minutes (configurable in config file) that he has some awaiting rewards. To see messages he has to have cmi.prewards.notification permission node.
    Description - Will define description for that reward which will be shown when hovering over in reward list. You can add as many lines as you want and use color codes if needed.
    PayFor - will define time in seconds when to give out reward. This in particular will pay only once and when player reaches particular amount of playtime in total.
    PayEvery - is repeating reward for each x seconds played on server.
    StackRewards - True or False. Defaults to True if not provided. Defines if you want to stack rewards and allow for player to get more than one reward at a time if he stacked them.
    Commands - List of commands to perform when reward is being claimed. Supports specialized commands.
  • Loading...
  • Loading...