Okay, so today I decided to recode the plugin (again). Here are the changes:
A new table will be created, this update is not compatible with older versions of this plugin.
I recommend to generate a new config file, because I made some changes.
Commands:
/onlinetime > Displays your own onlinetime
/onlinetime get <player> [since] > Displays another player's onlinetime (optionally you can specify a date to display his onlinetime since that date)
/onlinetime top [since] > Displays the top 10 onlinetimes (optionally you can specify a date to display the best onlinetimes since that date)
/onlinetime reset <player> [before] > Resets a players onlinetime (optionally you can specify a date to reset his onlinetime before that date)
/onlinetime resetall [before] > Resets the onlinetime of all the players (optionally you can specify a date to reset the onlinetimes before that date)
Permissions:
- onlinetime.own
- onlinetime.others
- onlinetime.others.since
- onlinetime.top
- onlinetime.top.since
- onlinetime.reset
- onlinetime.reset.before
- onlinetime.resetall
- onlinetime.resetall.before
https://github.com/R3fleXi0n/BungeeOnlineTime/commit/b1d161398b95c81f893567ff3fc960c15be5dd8b