OnTime - A playtime tracker

This is a discussion topic for the Ore project, OnTime. View the full project on Ore for downloads and more information.


OnTime

This plugin requires Anvil

Make sure to join our discord server if you have any questions or if you’d like to know more about our other plugins!

The goal of OnTime is to replace the out-dated playtime tracking plugins. In doing so, OnTime has the ability to import old user data from Rankup with the use of a simple command. The commands are listed here on our wiki. The permission for each command is listed alongside the command along with an example of the command usage.

To import data from rankup, Click Here

Setup

If you plan on using this across multiple servers you will need to use MongoDB

OnTime will use Xodus by default (which requires no external setup) but can also connect with MongoDB. To use the plugin simply edit this part of the config:

#
# Player ranks and their time requirement in seconds.
ranks {
    noob=0
    player=600
    trusted=1800
}

There are also commands that can be run on rankup: (new in v0.3.0)

# 
# Commands to run after a player has received a rank. The nodes are compiled as a regex and compared with the
# new rank name. The commands for every matching regex will run (not just the commands for the first regex that matches).
# Available placeholders:
# - %player% : The player's username
# - %rank% : The player's new rank
# - %time% : The time requirement of the new rank
# Note: ".*" is the regex that matches everything (commands under this will run for every rank up).
# For more information on regex, visit https://regexr.com/
# 
commands {
    ".*"=[
        "say %player% has advanced to %rank% after playing for %time%",
        "give %player% iron_ingot 1"
    ]
    trusted=[
        "say %player% is the best"
    ]
}

OnTime works with any rank plugin!

A new version has been released for OnTime, it is available for download here.


This plugin requires Anvil

Setup

OnTime will use Xodus by default (which requires no set up) but can also connect with MongoDB. To use the plugin simply edit this part of the config:

#
# Player ranks and their time requirement in seconds.
ranks {
    noob=0
    player=600
    trusted=1800
}

OnTime works with any rank plugin!

I can use this plugin without RankUpper? because it’s broken or dont work for me.

A new version has been released for OnTime, it is available for download here.


This release has mostly minor fixes and exists primarily as a compatible release for Anvil v0.2. To update from OnTime v0.1 to this v0.2, simply replace the OnTime jar as well as the Anvil jar (to v0.2). No changes are required for the config.

A new version has been released for OnTime, it is available for download here.


For server owners: data and config is still compatible from older versions, you must only change jars.

This release has breaking changes and requires Anvil v0.3

Changes

  • Moved package api.tasks to api.task
  • Moved from kyori text to adventure for velocity
  • NEW: Multipliers!
    • Add a multiplier with /lp user <user> meta set ontime-multiplier <x> where <x> is a the multiplier (e.g. 3)
    • The multiplier is combined with the default rankup time of one minute. A multiplier of 2.5 will add 2.5 minutes every minute
  • NEW: Commands on rankup!
    • Added commands section to config. You can now specify commands that should be run whenever a user changes rank