[ADMIN/INFO] OnTime v3.8.4 -Track playing time - Time-based rewards - Auto Promotions [1.5.2-R1.0]

Discussion in 'Archived: Plugin Releases' started by Edge209, Jun 22, 2012.


If you are already using OnTime, what features do you find the most beneficial to your server?

  1. Playing time tracking

    34 vote(s)
  2. Top Player Lists

    14 vote(s)
  3. Automated Rewards - items, econ, XP

    14 vote(s)
  4. Automated Rewards - Permission Group Promotions

    20 vote(s)
  5. Automated Rewards - permission granted, command execution

    8 vote(s)
  6. Automated Rewards: Exclusive to certain groups

    6 vote(s)
  7. Referral Rewards

    8 vote(s)
  8. OnTime Reports

    9 vote(s)
Multiple votes are allowed.
  1. Offline


  2. Offline


    Ok now I see. You are going about this the wrong way, and the easiest thing to do is to kinda start over.

    1. Go back to using V1.3.1

    2. Delete from your /plugin/ontime directory the rewards.yml file you have.

    3. Start your server. OnTime will automatically generate a new, clean, and complete version of the rewards.yml.

    4. If you want to make changes to rewards.yml, scroll to the very bottom. There you will find the right place to do your edits. What you have been doing is trying to edit the example that I embedded within the yml file. That's just not the right thing to do. :)

    5. I suggest adding your groups via edit to that file, but create rewards using the commands instead of trying to use the reward definition in the rewards.yml. It is so much easier. Plus once you use the command you can go and look at the rewards.yml to see what the right format is for the type of reward you want to create. Later you may understand it well enough to then do the edits by hand.
  3. Offline


    Edge209 I want to thank you for your help,
    I finally run it without any errors and the command work as well.

    I will monitor and update the thread if there is any issues.
    Thanks and i truly appreciate it

    One Love
  4. Offline


    I have posted an updated version (V3.1.1) to bukkitdev. It should be available for download shortly.
  5. Offline


    Awesome plugin, i have not update yet but having a minor issue that im sure you can explain to me.
    Higher rank groups are being demoted to member once the plugin has been activated.

    How can i set it so it does not affect higher ranks groups
    eg. op become a member after the specific time

    thanks again
  6. Offline


    You need to add those higher rank groups to the bottom of the list of groups in the ontime/rewards.yml file.
  7. Offline


    ok thanks edge.
  8. Offline


    hi, i am having real trouble trying to set a 'top player' reward off 1000 econ gold every week. i understand the command (ontime rewards top <rewardID> [daily/weekly/monthly/total] <startPlace> {<endPlace>}) what i don't understand is how i get it to realise i want econ not rewardID...? also, how do i set a recurring reward.. i have searched everywhere but cannot find the command, i would like to set it so everyone receives 800 econ gold every 10 hours on the server but i don't know the command for recurring.. i know how to do the promote reward and the single one off reward.. its recurring and Top Player i'm stuck on.. please help..

    regards crafty.
  9. Offline


    I guess
    I guess I need to finish the next tutorial since I wanted to cover all of these topics. So, lucky you get personalized service instead of a reference to the tutorial!

    TOP Player Reward:
    This is a two step process.​

    First you have to define the reward:​
    / ontime rewards add econ 0 0 0 1000​

    (This command creates your econ reward of 1000. The time specified (0 days 0 hours 0 min) could be anything since it is not used for the top rewards.​

    Then you make it a TopReward:​
    / ontime rewards top 1 weekly 1​

    (In the above the first "1" is the RewardID. Since I gave the timestamp as 0 0 0, I am assuming that it will be reward #1. You can find out the RewardID, by executing the 'ontime rewards list' command. Here you can look at an existing tutorial : http://dev.bukkit.org/server-mods/o...omotions/#w-reward-id-and-ontime-rewards-list

    The second "1" says you will only pay the top position.)​

    Recurring Reward:
    This too is a two step process.​

    First define the reward:​
    /ontime rewards add econ 0 10 0 800​

    (This sets the first instance of this reward to be issued at 0 days 10 hours 0 minutes.)​

    Then make it recurring:​
    / ontime rewards recur 2 0 10 0​

    (Here I am somewhat guessing at the RewardID ("2"). Use 'ontime rewards list' to get the RewardID to use. This will then repeat every 0 days 10 hours 0 minutes.​

    Note that if you were to create another reward (of any kind) at some time after this one starts say:​
    /ontime rewards add item 2 0 0 1 diamond​
    (Gives one diamond at two days of playtime)​

    Then your recurring reward of 800 econ gold would stop when the player reaches that 2 day mark, and never start again. (Recurring setting is only good until the next reward.)​

    If you want the 800 gold coins to continue forever, regardless of any other rewards defined, then you want to make it 'perpetual' instead of 'recurring'. This is easy to do, just replace the 'recur' with 'perpetual' as in:​
    /ontime rewards perpetual 2 0 10 0​

    Sorry for the long winded answer, but I wanted to make sure it was clear.

  10. Offline


    hey that is excellent thank you so much.. on little problem though, when i try to set the perpetual reward it throws a command up saying /ontime help.. ? this plugin is awesome..

    its okay i got it... its cause i was putting perpetual not perp.. thank you.. :)
  11. Offline


    Sorry, use "perp" instead of "perpetual". And you can check out the command page for more help, too.

    And thanks!
  12. Offline


    great.. don't know if you know this issue but my CMD keeps throwing up this error

    15:45:25 [WARNING] Task of 'OnTime' generated an exception
            at me.edge209.OnTime.AwayFK.checkAFK(AwayFK.java:88)
            at me.edge209.OnTime.OnTime.checkAFK(OnTime.java:266)
            at me.edge209.OnTime.OnTime$3.run(OnTime.java:222)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
            at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:512)
            at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
            at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
  13. Offline


    There is a bug in the code, so nice job finding it! I'll open a ticket on buketdev and get it fixed asap. It should not be harming anything other than spamming your console log.

    You can monitor progress here: http://dev.bukkit.org/server-mods/ontime/tickets/55-check-afk-null-pointer-exception-error/

    One question. What settings do you have for AFK in ontime/config.yml?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 26, 2016
  14. Offline


    afkCheckEnable: true
    # If AFK is enabled, max time (minutes) with no activity before player is considered AFK
    afkTime: 10
    # Selection of Data Storage Method.  Valid values= DAT, YML, MYSQL
    dataStorage: DAT
    hope this helps
  15. Offline


    New OnTime V3.2.2 is now available.
  16. Offline


    I have a major problem, my members have been getting reset to default and loosing all the inv? and it must be this plugin causing it because they loose there ontime record which sets them back to the default group and they loose all there inventory apart from their armour.?
  17. Offline


    Halle Edge209
    I want to know if there is a way to auto promote a player if he types in a defined password?
  18. Offline


    No, there is no such function with OnTime. Since all of the capabilities have some dependency on the amount of playtime, I don't see how such a feature wold fit. Perhaps if there was a requirement for both time and the password it could make sense. Feel free to open up an enhancement ticket at bukkitdev if this is something you really would like to see added,and I will give it some more consideration.
  19. Offline


    I have a very big problem. When a player join the game or leave the game, I get this error:

    Please help me!
  20. Offline


  21. Offline


  22. Offline


  23. Offline



    Great plugin you have. I noticed one thing: When you setup the automatic ranking based on time, it just adds the groups the players are in to the (insert permissions config here) config file. This isn't normally a problem, but for me it is.

    I have EssentialsChat set up to use the chat prefix based on the group the player is in. Since the plugin just adds groups to the config file, EssentialsChat doesn't know which group prefix to use, and then just defaults to using no prefix at all (The permissions don't really matter because each rank inherits from the one below it).

    Is there something I can do to make the plugin remove the group they're currently in before putting them in the new group?
  24. Offline


    The plugin is supposed to remove the players from their old groups, so if this is not happening than there is something going wrong. To help trouble shoot this I need some information from you including what permissions plugin you are using, what version of OnTime you have, and it would be helpful to see a copy of your ontime/rewards.yml file.

    It would probably be best to move this conversation out of this tread by having you open up a ticket in bukketdev.

  25. Offline


    Ticket submitted. Thanks for the very quick reply!
  26. Offline


    Please see the ticket for instructions on how to deal with this known issue with PermissionsBukkit.
  27. Offline


    Thanks for making this, my players are liking getting rewards for top online time :)

    Would it be possible to alter the way a referred player status is stored, perhaps in the SQL database rather than setting the permission node?
    I use McMyAdmin which overwrites permissions when changed in MCMA, so a direct write to a permission node isn't persistent.

    If this is possible, this would be really cool as I'd like to be able to reward referrals too.

    Thanks if you can.
  28. Offline


    This is definitely doable, and should be a petty easy modification. It would help me if you were to open up an enhancement ticket. I'll look to add this to the next release, which should be out pretty soon.

  29. Offline


    Ok, great. I've just added that ticket.

Share This Page