PlayTimes - Track Player PlayTime icon

PlayTimes - Track Player PlayTime -----

The best /playtime plugin! PAPI support, offline checks, API & more!




[​IMG]

Update v1.6.2b
Better 1.20.6 Support


Changelog:
- Fixed older builds of 1.20.6 not loading PlayTimes Properly


If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues



Please consider supporting me here! <3
https://www.buymeacoffee.com/codedred
----------, Jun 20, 2024

[​IMG]

Update v1.6.2
1.20.6 Support & Optimizations


v1.6.1 Changelog:

- Add support for 1.20.6
- Optimized & fixed hex. Format: <#123456>
- Optimized onQuit listener to reduce lag significantly
- Fixed many online/offline uuid lookup issues.


If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues





Past Changelogs:


v1.6.2 Changelog:

- Fixed some PAPI bugs
- Fixed 1.8 support
- Added/fixed the following placeholders:

PAPI:
%PlayTimes_playtime%
%PlayTimes_rawtime%
%PlayTimes_afktime%

PAPI Database support:

%PlayTimes_global_playtime%
%PlayTimes_global_rawtime%
%PlayTimes_global_afktime%
%PlayTimes_playtime_serverId%
%PlayTimes_rawtime_serverId%
%PlayTimes_afktime_serverId%

Global placeholders grab the total time from all servers.

More info: https://github.com/CodedRed-Spigot/PlayTimes/wiki/Bungee-Support

The plugin should work with SQLite. If you are experiencing issues, please DM me or report in GitHub ASAP!


Check out the previous 1.6 version changelog below!

Change Log:
- Bungee/Multi-server support through SQL.
- MySQL fully tested
- SQLite not fully tested (see roadmap)
- Database placeholders to see your playtime on other servers


- Global placeholders to see total playtime from all servers
- AFK tracker
- New Placeholders! %afktime% & %rawtime%
- /toppt works in console now
- Vanished players removed from /pt tab completion
- Fixed offline player check bug.
- /pt debug renamed to /pt version

Disclaimer:
This was a big update for Playtimes, I checked and tested as much as I could but there still may be some bugs! Please if you encounter issues report them to me in a DM or on Github. I will fix the bugs ASAP!



More updates coming soon!
Roadmap:
1.6: Database Support & AFK Checker
1.6.1: Full SQLite support + more placeholders
1.6.2: Permission-Based Messages + Nickname Support
1.6.3: Easy Hoverable Message Configuration + better wiki
1.7: Playtimes Rewards/Shop/GUI


Database Info:

https://github.com/CodedRed-Spigot/PlayTimes/wiki/Bungee-Support

AFK Tracker:
Code (Text):
# AFK Tracker Configuration[/SIZE][/B][/SIZE][/SIZE][/B][/SIZE]
[SIZE=5][B][SIZE=4][SIZE=5][B][SIZE=4]# NOTE: When enabled, this will remove afk time from %playtime% placeholder
afk-settings:
  enabled: true

  ## Time in minutes after which a player is considered AFK.
  threshold: 5

  ## Notifications settings for AFK status changes.
  broadcast-afk:
    on-enter-afk: true
    on-exit-afk: true

  # Message to send to the player when they are marked as AFK.
  on-enter-afk-message: "&eYou are now marked as AFK."
  # Message to send to the player when they are no longer marked as AFK.
  on-exit-afk-message: "&eYou are no longer AFK."
  # Leave true unless you are experiencing lag/issues with one of the afk listeners.
  cancel-afk:
    on-player-move: true
    on-player-chat: true
    on-player-interact: true


If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting me here! <3
https://www.buymeacoffee.com/codedred
----------, Jun 19, 2024

[​IMG]

Update v1.6.1

Placeholder Update

Changelog:

- Fixed some PAPI bugs
- Fixed 1.8 support
- Added/fixed the following placeholders:

PAPI:
%PlayTimes_playtime%
%PlayTimes_rawtime%
%PlayTimes_afktime%

PAPI Database support:

%PlayTimes_global_playtime%
%PlayTimes_global_rawtime%
%PlayTimes_global_afktime%
%PlayTimes_playtime_serverId%
%PlayTimes_rawtime_serverId%
%PlayTimes_afktime_serverId%

Global placeholders grab the total time from all servers.

More info: https://github.com/CodedRed-Spigot/PlayTimes/wiki/Bungee-Support

The plugin should work with SQLite. If you are experiencing issues, please DM me or report in GitHub ASAP!


Check out the previous 1.6 version changelog below!

Change Log:
- Bungee/Multi-server support through SQL.
- MySQL fully tested
- SQLite not fully tested (see roadmap)
- Database placeholders to see your playtime on other servers


- Global placeholders to see total playtime from all servers
- AFK tracker
- New Placeholders! %afktime% & %rawtime%
- /toppt works in console now
- Vanished players removed from /pt tab completion
- Fixed offline player check bug.
- /pt debug renamed to /pt version

Disclaimer:

This was a big update for Playtimes, I checked and tested as much as I could but there still may be some bugs! Please if you encounter issues report them to me in a DM or on Github. I will fix the bugs ASAP!



More updates coming soon!
Roadmap:

1.6: Database Support & AFK Checker
1.6.1: Full SQLite support + more placeholders
1.6.2: Permission-Based Messages + Nickname Support
1.6.3: Easy Hoverable Message Configuration + better wiki
1.7: Playtimes Rewards/Shop/GUI


Database Info:

https://github.com/CodedRed-Spigot/PlayTimes/wiki/Bungee-Support

AFK Tracker:
Code (Text):
# AFK Tracker Configuration[/SIZE][/B][/SIZE]
[SIZE=5][B][SIZE=4]# NOTE: When enabled, this will remove afk time from %playtime% placeholder
afk-settings:
  enabled: true

  ## Time in minutes after which a player is considered AFK.
  threshold: 5

  ## Notifications settings for AFK status changes.
  broadcast-afk:
    on-enter-afk: true
    on-exit-afk: true

  # Message to send to the player when they are marked as AFK.
  on-enter-afk-message: "&eYou are now marked as AFK."
  # Message to send to the player when they are no longer marked as AFK.
  on-exit-afk-message: "&eYou are no longer AFK."
  # Leave true unless you are experiencing lag/issues with one of the afk listeners.
  cancel-afk:
    on-player-move: true
    on-player-chat: true
    on-player-interact: true


If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting me here! <3
https://www.buymeacoffee.com/codedred
----------, Mar 23, 2024

[​IMG]

Update v1.6
Early Access* Database + AFK Support


Change Log:

- Bungee/Multi-server support through SQL.
- MySQL fully tested
- SQLite not fully tested (see roadmap)
- Database placeholders to see your playtime on other servers
- Global placeholders to see total playtime from all servers
- AFK tracker
- New Placeholders! %afktime% & %rawtime%

- /toppt works in console now
- Vanished players removed from /pt tab completion
- Fixed offline player check bug.
- /pt debug renamed to /pt version

Disclaimer:

This was a big update for Playtimes, I checked and tested as much as I could but there still may be some bugs! Please if you encounter issues report them to me in a DM or on Github. I will fix the bugs ASAP!


More updates coming soon!
Roadmap:

1.6: Database Support & AFK Checker
1.6.1: Full SQLite support + more placeholders
1.6.2: Permission-Based Messages + Nickname Support
1.6.3: Easy Hoverable Message Configuration + better wiki
1.7: Playtimes Rewards/Shop/GUI


Database Info:
https://github.com/CodedRed-Spigot/PlayTimes/wiki/Bungee-Support

AFK Tracker:
Code (Text):
# AFK Tracker Configuration
# NOTE: When enabled, this will remove afk time from %playtime% placeholder
afk-settings:
  enabled: true

  ## Time in minutes after which a player is considered AFK.
  threshold: 5

  ## Notifications settings for AFK status changes.
  broadcast-afk:
    on-enter-afk: true
    on-exit-afk: true

  # Message to send to the player when they are marked as AFK.
  on-enter-afk-message: "&eYou are now marked as AFK."
  # Message to send to the player when they are no longer marked as AFK.
  on-exit-afk-message: "&eYou are no longer AFK."
  # Leave true unless you are experiencing lag/issues with one of the afk listeners.
  cancel-afk:
    on-player-move: true
    on-player-chat: true
    on-player-interact: true


If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting me here! <3
https://www.buymeacoffee.com/codedred
----------, Feb 21, 2024

[​IMG]

Update v1.5.3

Change Log:

- Fixed `pt.others` permission bug
- Fixed update checker (log message)
- Added new PAPI placeholder:
%PlayTimes_timesjoined% - will return the # of times a player has joined the server

More updates coming soon!



Check out the 1.5 changelog for more! Many updates are on the way.

If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred
----------, Oct 2, 2023

[​IMG]

Update v1.5.2

Change Log:

- Added API back
(thank you @Produktecheck for reporting)




API:
There will be a major API update soon, this update just put the previous API back into the plugin. Information about this API can be found here.




Check out the 1.5 changelog for more! Many updates are on the way.

If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred
----------, Jul 27, 2023

[​IMG]

Update v1.5.1

Change Log:

- Patched a 1.20 version bug. This bug only affected 1.20 servers, not 1.20.1
(thank you @tantrum90 for reporting)
- Fixed block command bug




Check out the 1.5 changelog for more! Many updates are on the way.

If you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred
----------, Jul 13, 2023

[​IMG]

Update v1.5

Change Log:

-Full compatibility with Minecraft 1.20 servers
-Significantly optimized plugin for improved efficiency, resulting in reduced lag and faster responses
-Introducing two new admin commands for enhanced support: "pt help" and "pt debug"
-Added command tab completer for streamlined command usage
-Improved formatting for enhanced readability and visual appeal


Format Tips:
The extra space between the format names has been removed. This means if you would like the space you would need to add it back in the config.yml. Furthermore, this change means other formats can be used. See below for help with formats.

XX hrs XX mins XX s
Code (Text):
playtime:
  name:
    second: " s"
    minute: " min "
    hour: " hr "
    day: " day "
    seconds: " s"
    minutes: " mins "
    hours: " hrs "
    days: " days "


XX:XX:XX
Code (Text):
playtime:
  name:
    second: ""
    minute: ":"
    hour: ":"
    day: ":"
    seconds: ""
    minutes: ":"
    hours: ":"
    days: ":"


XXhrs XXmins XXs
Code (Text):
playtime:
  name:
    second: "s"
    minute: "min "
    hour: "hr "
    day: "day "
    seconds: "s"
    minutes: "mins "
    hours: "hrs "
    days: "days "



Important Notice:
PlayTimes v1.5 has undergone significant changes and rigorous testing on both online and offline servers running Minecraft 1.20.

However, if you encounter any bugs or issues, I kindly request your assistance in promptly reporting them. Your valuable feedback allows me to address any concerns swiftly and provide a seamless experience for all users. Please create an issue on the GitHub repository using the following link: https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred
----------, Jul 11, 2023

[​IMG]

Update v1.4.7

Change Log:
- Added 1.19 Support
- Fixed 1.19 offline time checks.



Sorry for the delays, been busy with work and life. Updating all my plugins soon as well as looking into adding tons of new features to this plugin including an afk checker!


If you run into a bug please report it asap on GitHub:
https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred
----------, Jul 19, 2022

[​IMG]

Update v1.4.6

Change Log:
- Added 1.18 Support


If you run into a bug please report asap on GitHub:
https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred



READ UPDATE 1.4!
https://www.spigotmc.org/resources/...time-server-uptime.58858/update?update=409441
----------, Dec 16, 2021


[​IMG]

Update v1.4.5

Change Log:
- Fixed Update Checker Bugs
- Updated Maps
- General code update

PlayTimes is now officially open source!
Check out the wiki and more here: https://github.com/CodedRed-Spigot/PlayTimes


If you run into a bug please report asap on GitHub:
https://github.com/CodedRed-Spigot/PlayTimes/issues

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred



READ UPDATE 1.4!
https://www.spigotmc.org/resources/...time-server-uptime.58858/update?update=409441
----------, Nov 2, 2021

NOTE: A lot changed in update 1.4, please report bugs to my discord or a pm to me ASAP!
[​IMG]

Update v1.4.4

Change Log:
- Fixed 'pt <name>' bug
- Fixed leaderboards showing 0s
- Fixed timings for players who have yet joined the 1.17 version of updated servers.
- Changed UUID grabber
- Updated threading

After many many headaches, I believe PlayTimes is finally at a perfect stable version. 1.17 changed stats again... For servers who updated from 1.13+ to 1.17, I added a safety check for players' playtime. This will allow the plugin to grab playtime from players who have not yet joined on the 1.17 server. PlayTimes behaves differently depending on the mc version and offline/online mode. It takes many hours and a lot of work to get it working in all scenarios. If you do enjoy PlayTimes please leave a friendly review :) Thank y'all very much!

If you run into a bug please report asap in a dm or on discord: https://discord.gg/7A9UA2n

Please consider supporting here! <3
https://www.buymeacoffee.com/codedred



READ UPDATE 1.4!
https://www.spigotmc.org/resources/...time-server-uptime.58858/update?update=409441
----------, Jul 7, 2021

NOTE: A lot changed in update 1.4, please report bugs to my discord or a pm to me ASAP!
[​IMG]

Update v1.4.3

Change Log:
- Fixed Leaderboard PAPI Placeholder bug
- Fixed /pt <player> bug for offline-mode servers
- Optimized Threading
- Optimized API requests (zero-lag requests due to new threading)
- Cleaned up code



READ UPDATE 1.4!
https://www.spigotmc.org/resources/...time-server-uptime.58858/update?update=409441
----------, Jun 29, 2021

NOTE: A lot changed in update 1.4, please report bugs to my discord or a pm to me ASAP!
[​IMG]

Update v1.4.2

ChangeLog:
- Fixed PAPI Placeholder bug
- Fixed statistical bug

Note: Offline servers may experience smalls issues, they are being looked into readily. If you experience anything please first restart your server, if the problem consists report to me asap!

READ UPDATE 1.4!
https://www.spigotmc.org/resources/...time-server-uptime.58858/update?update=409441
----------, Jun 28, 2021

NOTE: A lot changed in the last update, please report bugs to my discord or a pm to me ASAP!
[​IMG]

Update v1.4.1

ChangeLog:
- Fixed Leaderboard bug
- Fixed times-joined placeholder bug

Note: Offline servers may experience smalls issues, they are being looked into readily. If you experience anything please first restart your server, if the problem consists report to me asap!

READ THE LAST UPDATE!
https://www.spigotmc.org/resources/...time-server-uptime.58858/update?update=409441
----------, Jun 25, 2021

NOTE: A lot changed in this update, please report bugs to my discord or a pm to me ASAP!
[​IMG]

Update v1.4

ChangeLog:
- Added 1.17 Support
- Fixed offline server issues
- Fix Hex code bug
- Optimized code
- Optimized leaderboards
- Added new /pt block command
- Added new /pt top command
- Fixed blocking players from leaderboards bug
- Added only-hours format
- Changed way data folder holds data
(This will make it easier to add new features)


BEFORE DOWNLOADING:
A lot was changed in this update, about 85% of the plugin was re-coded to be more efficient and allow easier bug fixes and updates. Before you download please make a copy of your data.yml file just in case. I tested this multiple times and the reformatting code *seems* to work flawlessly.

Another note: The config file was changed to make it easier for new users to use. I was unable to automatically update your config.yml for you. It will use default values unless you specify differently.
New values consist of:
- only-hours format
- new 'player-never-joined' msg format
- 'use-papi-placeholders: false' setting

You can find the updated default yml here:
Code (YAML):
# PlayTimes by CodedRed

# For support please ask here: https://discord.gg/7A9UA2n

# Prefix will show before 'player-not-found' & 'player-never-joined' messages
prefix
: "&7[&b&lPlayTimes&7]"

# date-format can be changed to your liking.
# For more placeholders look here: https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
# This is the join date format.
date-format
: MM/dd/yyyy

# Placeholders API info
  # Only enable this if you are using PAPI holders in PlayTimes
  # If you want to use PlayTimes placeholders in other plugins...
  # Just download PAPI and it will *automatically* register
use-papi-placeholders
: false

# Main Playtimes info.
# The name refers to the format. Example if you have minute = " min" then it will display "x min"
playtime
:
  name
:
    second
: "s"
    minute
: "min"
    hour
: "hr"
    day
: "day"
    seconds
: "s"
    minutes
: "mins"
    hours
: "hrs"
    days
: "days"

  ## only-hours - when true it will display playtime in hours (When true this will also disable show-seconds/days setting)
  ## show-seconds - when true it will display seconds
  ## show-days - when true it will display days
  only-hours
: false
  show-seconds
: true
  show-days
: true


  ## Built-in Placeholders:
  ## %player% %time% %timesjoined% %joindate%
  ## You may also use PAPI Placeholders
  message
:
   - "&b&m=======&b&l[%player%]&b&m======="
    - "&aPlaytime:&f %time%"
    - "&aTimes joined:&f %timesjoined%"
    - "&aJoined Date:&f %joindate%"
    - "&b&m============================"

# /Uptime command info - only placeholder is %serveruptime%
uptime
:
  message
:
   - "&b&m============================"
    - "&aServer Uptime:&f %serveruptime%"
    - "&b&m============================"

# /toppt command info
## Built-in Placeholders:
## %player% %place% %time% %joindate%
## You may also use PAPI placeholders
top-playtime
:
  header
: "&b******&9[&3&lPlayTime Leaderboards&9]&b*****"
  content
: "&5%place%) &9&l%player% &9&o- %time%"
  footer
: "&b****************************************"
  enable-cooldown
: true
  cooldown-seconds
: 60

# Built in messages, may change to your liking :D
messages
:
  noPermission
: "&cYou cannot run this command."
  player-not-found
: "&cPlayer not found."
  player-never-joined
: "&cPlayer has never joined the server!"
  cooldown
: "&cYou cannot use this command for %timeleft% seconds!"
 



HEX Color Code Change:
The new format for Hex is <#123456>
Make sure to update configs!


NEW COMMANDS!
There is a new block command to block users from the leaderboards! This command is efficient and fast.
/pt block <player>
/pt unblock <player>
(permission node: pt.block)

There is also a new shortcut for the leaderboards!
/pt top

API CHANGES!
The API has been changed and is being massively worked on. A few of the features as been removed due to how the new core works. These features may return in future updates. For a look at the new API check out the overview page.

So what's coming soon?
This re-code was much needed, it allows me to push new features out easier. Here is a list of planned features coming to PlayTimes:
- MySQL support
- Holograms

- Rewards
- Sort times based on week/month/year
- Control and analyze playtime
- Get real-time statistics on your servers playtime
- And much more!

----------, Jun 24, 2021

[​IMG]

Update v1.3.10

ChangeLog:
- Added PAPI support to /toppt command. You can now use PAPI placeholders in the header, footer, and content.



OFFLINE SEVERS READ BELOW:
If your server is in offline mode and you cannot get the player times, please use the PAPI placeholders until a fix is found. Sorry about this error, still trying to figure out what's wrong :D
----------, Jan 27, 2021

[​IMG]

Update v1.3.9


ChangeLog:
- Switched back to the old Statistics code, due to the code working better for all versions of Minecraft.
- HEX color bug fixes



OFFLINE SEVERS READ BELOW:
If your server is in offline mode and you cannot get the player times, please use the PAPI placeholders until a fix is found. Sorry about this error, still trying to figure out what's wrong :D
----------, Jan 5, 2021

[​IMG]

Update v1.3.8

ChangeLog:
- Minor Bug fixes mostly for 1.12< servers.
- Optimization for Placeholders/Toppt
- Optimization for API

PAPI placeholders info:
Code (Text):
%PlayTimes_playtime%  - returns player's playtime
%PlayTimes_uptime%    - returns server uptime
%PlayTimes_joindate%  - returns players joindate

Specific time placeholders:
%PlayTimes_justdays%  - returns only the amount of days played
%PlayTimes_justhours% - returns only the amount of hours played
%PlayTimes_justmins% - returns only the amount of mins played
%PlayTimes_justsecs% - returns only the amount of secs played

Leaderboard placeholders:
%PlayTimes_topname1% - returns the #1 player with the most playtime (returns their name)
%PlayTimes_toptime1% - returns the #1 time (player #1's time)

You can go from 1 - 10 with this!
Example) If you want the 3rd top playtime name and time do:
%PlayTimes_topname3%  and %PlayTimes_toptime3%

Complete list:
%PlayTimes_topname1%
%PlayTimes_topname2%
%PlayTimes_topname3%
%PlayTimes_topname4%
%PlayTimes_topname5%
%PlayTimes_topname6%
%PlayTimes_topname7%
%PlayTimes_topname8%
%PlayTimes_topname9%
%PlayTimes_topname10%

%PlayTimes_toptime1%
%PlayTimes_toptime2%
%PlayTimes_toptime3%
%PlayTimes_toptime4%
%PlayTimes_toptime5%
%PlayTimes_toptime6%
%PlayTimes_toptime7%
%PlayTimes_toptime8%
%PlayTimes_toptime9%
%PlayTimes_toptime10%
----------, Dec 24, 2020

[​IMG]

Update v1.3.7

ChangeLog:
- Fixed a bug for 1.13 servers

PAPI placeholders info:
Code (Text):
%PlayTimes_playtime%  - returns player's playtime
%PlayTimes_uptime%    - returns server uptime
%PlayTimes_joindate%  - returns players joindate

Specific time placeholders:
%PlayTimes_justdays%  - returns only the amount of days played
%PlayTimes_justhours% - returns only the amount of hours played
%PlayTimes_justmins% - returns only the amount of mins played
%PlayTimes_justsecs% - returns only the amount of secs played

Leaderboard placeholders:
%PlayTimes_topname1% - returns the #1 player with the most playtime (returns their name)
%PlayTimes_toptime1% - returns the #1 time (player #1's time)

You can go from 1 - 10 with this!
Example) If you want the 3rd top playtime name and time do:
%PlayTimes_topname3%  and %PlayTimes_toptime3%

Complete list:
%PlayTimes_topname1%
%PlayTimes_topname2%
%PlayTimes_topname3%
%PlayTimes_topname4%
%PlayTimes_topname5%
%PlayTimes_topname6%
%PlayTimes_topname7%
%PlayTimes_topname8%
%PlayTimes_topname9%
%PlayTimes_topname10%

%PlayTimes_toptime1%
%PlayTimes_toptime2%
%PlayTimes_toptime3%
%PlayTimes_toptime4%
%PlayTimes_toptime5%
%PlayTimes_toptime6%
%PlayTimes_toptime7%
%PlayTimes_toptime8%
%PlayTimes_toptime9%
%PlayTimes_toptime10%
----------, Dec 22, 2020

[​IMG]

Update v1.3.6

ChangeLog:
- Fixed minor bugs
- PAPI placeholder fixes
- PAPI Optimization
- Time updates automatically for /toppt and PAPI

PAPI placeholders info:
Code (Text):
%PlayTimes_playtime%  - returns player's playtime
%PlayTimes_uptime%    - returns server uptime
%PlayTimes_joindate%  - returns players joindate

Specific time placeholders:
%PlayTimes_justdays%  - returns only the amount of days played
%PlayTimes_justhours% - returns only the amount of hours played
%PlayTimes_justmins% - returns only the amount of mins played
%PlayTimes_justsecs% - returns only the amount of secs played

Leaderboard placeholders:
%PlayTimes_topname1% - returns the #1 player with the most playtime (returns their name)
%PlayTimes_toptime1% - returns the #1 time (player #1's time)

You can go from 1 - 10 with this!
Example) If you want the 3rd top playtime name and time do:
%PlayTimes_topname3%  and %PlayTimes_toptime3%

Complete list:
%PlayTimes_topname1%
%PlayTimes_topname2%
%PlayTimes_topname3%
%PlayTimes_topname4%
%PlayTimes_topname5%
%PlayTimes_topname6%
%PlayTimes_topname7%
%PlayTimes_topname8%
%PlayTimes_topname9%
%PlayTimes_topname10%

%PlayTimes_toptime1%
%PlayTimes_toptime2%
%PlayTimes_toptime3%
%PlayTimes_toptime4%
%PlayTimes_toptime5%
%PlayTimes_toptime6%
%PlayTimes_toptime7%
%PlayTimes_toptime8%
%PlayTimes_toptime9%
%PlayTimes_toptime10%
----------, Dec 22, 2020

[​IMG]

Update v1.3.5

ChangeLog:
- /pte completely removed for the time being.
- Added more PAPI placeholders
- Fixed cooldown %timeleft% placeholder
- Added `show-days` option to hide days from time format
- Fixed minor bugs

PAPI placeholders info:
Code (Text):
%PlayTimes_playtime%  - returns player's playtime
%PlayTimes_uptime%    - returns server uptime
%PlayTimes_joindate%  - returns players joindate

Specific time placeholders:
%PlayTimes_justdays%  - returns only the amount of days played
%PlayTimes_justhours% - returns only the amount of hours played
%PlayTimes_justmins% - returns only the amount of mins played
%PlayTimes_justsecs% - returns only the amount of secs played

Leaderboard placeholders:
%PlayTimes_topname1% - returns the #1 player with the most playtime (returns their name)
%PlayTimes_toptime1% - returns the #1 time (player #1's time)

You can go from 1 - 10 with this!
Example) If you want the 3rd top playtime name and time do:
%PlayTimes_topname3%  and %PlayTimes_toptime3%

Complete list:
%PlayTimes_topname1%
%PlayTimes_topname2%
%PlayTimes_topname3%
%PlayTimes_topname4%
%PlayTimes_topname5%
%PlayTimes_topname6%
%PlayTimes_topname7%
%PlayTimes_topname8%
%PlayTimes_topname9%
%PlayTimes_topname10%

%PlayTimes_toptime1%
%PlayTimes_toptime2%
%PlayTimes_toptime3%
%PlayTimes_toptime4%
%PlayTimes_toptime5%
%PlayTimes_toptime6%
%PlayTimes_toptime7%
%PlayTimes_toptime8%
%PlayTimes_toptime9%
%PlayTimes_toptime10%
----------, Dec 15, 2020

[​IMG]

Update v1.3.4

ChangeLog:
- /pte is now only available in 1.16+
- /pte is being worked on for other versions until then it is disabled in old versions.
- Fixed some bugs
----------, Aug 24, 2020

[​IMG]

Update v1.3.3

ChangeLog:
- Removed Support for old API
- TimelessServer API now returns UUIDs not Players




DEVELOPERS READ API CHANGES BELOW:

The API for this plugin has been greatly redone last update. First, start off by adding this resource to your plugin.
Once this plugin is added to your projects' external libraries you can start to use it!

The API works from two different methods.

A TimelessPlayer and a TimelessServer.


TimelessPlayer:

A TimelessPlayer can either be online or offline.
Example: Creating an online player:
Code (Java):
TimelessPlayer player = new TimelessPlayer (event. getPlayer ( ) ) ;
*If the player is offline or unknown use a UUID instead of a Player!
Example: Creating an offline player:
Code (Java):
TimelessPlayer player = new TimelessPlayer (uuid ) ;
A Timeless player has the following methods:

Code (Text):
getPlayTime() - returns playtime of player in format
getDays() - returns days played
getHours() - returns hours played
getMins() - returns minutes played
getSecs() - returns seconds played

TimelessServer:

A TimelessServer can display the top 10 leaderboard info and uptime!

To create a TimelessServer simply do:
Code (Java):
TimelessServer server = new TimelessServer ( ) ;
The methods a TimelessServer can do are:

Code (Text):
getTop10Players() - returns top 10 players in a list
getNumberOne() - returns number 1 in leaderboard
getNumberTwo() - returns number 2
getNumberThree()... all the way to getNumberTen()

getUptime() - returns server uptime in format
getUptimeInSeconds() - returns uptime in seconds
NOTE: It is recommended to use getTop10Players() and retrieving the other positions when dealing with multiple positions.


For further help join the help discord :)






Thank you all for the support and downloads!
Check our PlayTimes statistics here :)
https://bstats.org/plugin/bukkit/PlayTimes/5289
----------, Aug 5, 2020

[​IMG]

Update v1.3.2

ChangeLog:
- Fixed Support for Spigot 1.12< servers
- Fixed API support for 1.12< servers

- Removed /pte support for servers < 1.13
(/pte will not become available for < 1.13 servers unless md_5 himself helps me figure it out)





Thank you all for the support and downloads!
Check our PlayTimes statistics here :)
https://bstats.org/plugin/bukkit/PlayTimes/5289
----------, Jul 25, 2020

[​IMG]

Update v1.3.1

ChangeLog:
- Added HEX color Support for 1.16 servers
(Use any hex color code in any message!)

- Removed /pte support for servers < 1.13****



DEVELOPERS READ API CHANGES BELOW:

The API for this plugin has been greatly redone last update. First, start off by adding this resource to your plugin.
Once this plugin is added to your projects' external libraries you can start to use it!

The API works from two different methods.

A TimelessPlayer and a TimelessServer.


TimelessPlayer:

A TimelessPlayer can either be online or offline.
Example: Creating an online player:
Code (Java):
TimelessPlayer player = new TimelessPlayer (event. getPlayer ( ) ) ;
*If the player is offline or unknown use a UUID instead of a Player!
Example: Creating an offline player:
Code (Java):
TimelessPlayer player = new TimelessPlayer (uuid ) ;
A Timeless player has the following methods:

Code (Text):
getPlayTime() - returns playtime of player in format
getDays() - returns days played
getHours() - returns hours played
getMins() - returns minutes played
getSecs() - returns seconds played

TimelessServer:

A TimelessServer can display the top 10 leaderboard info and uptime!

To create a TimelessServer simply do:
Code (Java):
TimelessServer server = new TimelessServer ( ) ;
The methods a TimelessServer can do are:

Code (Text):
getTop10Players() - returns top 10 players in a list
getNumberOne() - returns number 1 in leaderboard
getNumberTwo() - returns number 2
getNumberThree()... all the way to getNumberTen()

getUptime() - returns server uptime in format
getUptimeInSeconds() - returns uptime in seconds
NOTE: It is recommended to use getTop10Players() and retrieving the other positions when dealing with multiple positions.


For further help join the help discord :)
P.S old API works but will be removed in 2-3 updates!



Coming soon:
- PlayTimesPlus coming very very very soon :)




Thank you all for the support and downloads!
Check our PlayTimes statistics here :)
https://bstats.org/plugin/bukkit/PlayTimes/5289
----------, Jul 24, 2020

[​IMG]

Update v1.3

ChangeLog:
- Added Support for 1.16.1

- Completely Recoded Plugin!
- More efficient code
- Removed %deaths% placeholder
- Better/New API

- Added commands to reset/set playtime



Reset & Set PlayTime:
You can now set and reset players' playtime. This was a popular request that I had a hard time deciding if it should be added or not. With this ability, you have the opportunity to reset all the players' playtime on your server but once done it cannot be reversed! Be careful with who you give permission to this command.
USAGE:
Code (Text):
PERMISSION NODE: pt.admin


/pte reset all - resets every single players' playtime
/pte reset <player> - resets a players' playtime
/pte set <player> <time-in-seconds> - sets a players' playtime

Please note: This feature is very new, use at your own risk in old old versions of MC

Complete Recode:
This plugin undertook a pretty massive recode. This recode will make it 100x easier to add features. It also made the plugin much more efficient. However, with every new code introduced new problems. This update was tested many times but could contain a bug somewhere. If you experience any issues please dm me asap! Thank you all for the support, happy to be working on this plugin once again.


DEVELOPERS READ API CHANGES BELOW:

The API for this plugin has been greatly redone. First, start off by adding this resource to your plugin.
Once this plugin is added to your projects' external libraries you can start to use it!

The API works from two different methods.

A TimelessPlayer and a TimelessServer.


TimelessPlayer:

A TimelessPlayer can either be online or offline.
Example: Creating an online player:
Code (Java):
TimelessPlayer player = new TimelessPlayer (event. getPlayer ( ) ) ;
*If the player is offline or unknown use a UUID instead of a Player!
Example: Creating an offline player:
Code (Java):
TimelessPlayer player = new TimelessPlayer (uuid ) ;
A Timeless player has the following methods:

Code (Text):
getPlayTime() - returns playtime of player in format
getDays() - returns days played
getHours() - returns hours played
getMins() - returns minutes played
getSecs() - returns seconds played

TimelessServer:

A TimelessServer can display the top 10 leaderboard info and uptime!

To create a TimelessServer simply do:
Code (Java):
TimelessServer server = new TimelessServer ( ) ;
The methods a TimelessServer can do are:

Code (Text):
getTop10Players() - returns top 10 players in a list
getNumberOne() - returns number 1 in leaderboard
getNumberTwo() - returns number 2
getNumberThree()... all the way to getNumberTen()

getUptime() - returns server uptime in format
getUptimeInSeconds() - returns uptime in seconds
NOTE: It is recommended to use getTop10Players() and retrieving the other positions when dealing with multiple positions.


For further help join the help discord :)
P.S old API works but will be removed in 2-3 updates!



Coming soon:
- PlayTimesPlus coming very very very soon :)




Thank you all for the support and downloads!
Check our PlayTimes statistics here :)
https://bstats.org/plugin/bukkit/PlayTimes/5289
----------, Jun 27, 2020

[​IMG]

Update v1.2.15

Update Info:
Looks like Mojang changed some API for my offline UUID fetcher :(! Thank you all for reporting this, the offline checks, as well as the top leaderboards bug, has been fixed! Stayed tuned. Big update coming soon!





Coming soon:
- Better toppt optimization
- more placeholders
- gui?
- Premium PlayTimes version
(PlayTimesPlus) MySQL
(PlayTimesPlus) AFK Checker
(PlayTimesPlus) Rewards




Thank you all for the support and downloads!
Check our PlayTimes statistics here :)
https://bstats.org/plugin/bukkit/PlayTimes/5289
----------, Apr 29, 2020

[​IMG]

Update v1.2.14

Update Info:
- Bug fixes for PAPI extensions
- Offline Toppt Bug fixes
- Added leaderboard feature


Block users from Toppt:
You can now block players from Toppt within the config. When players are blocked they will not show on the /toppt leaderboards.



Coming soon:
- Better toppt optimization
- more placeholders
- gui?
- Premium PlayTimes version
(PlayTimesPlus) MySQL
(PlayTimesPlus) AFK Checker
(PlayTimesPlus) Rewards




Thank you all for the support and downloads!
Check our PlayTimes statistics here :)
https://bstats.org/plugin/bukkit/PlayTimes/5289
----------, Apr 13, 2020

[​IMG]

Update v1.2.13

Update Info:
Thanks to @Kollho||Tobi for reporting a bug via my discord!


Afk checker and rewards coming soon :)
----------, Dec 16, 2019

[​IMG]

Update v1.2.12

Update Info:
PlayTimes has been updated to support spigot version 1.15! Bug fixes were also done in this update.
----------, Dec 14, 2019

[​IMG]

Update v1.2.11

Bug fix!
Thanks to @LucidAPs a bug with top playtime has been fixed.


See update v1.2.9 for more info about the latest features!
----------, Dec 9, 2019

[​IMG]

Update v1.2.10

Bug fix!
Just a small fix for offline join date :)


See update v1.2.9 for more info!
----------, Dec 7, 2019

[​IMG]

Update v1.2.9

Bug fixes!
Many bug fixes were made in this update including join date, PAPI and toppt!

New Join Date:
You will now notice a new feature in your config.yml, "date-format". You can now edit the format of the join date :)

Better time telling:
To make the player time more grammatically correct you can edit the plural names!
Code (Text):
playtime:
  name:
    second: sec
    minute: min
    hour: hr
    day: day
    seconds: secs
    minutes: mins
    hours: hrs
    days: days


More updates coming soon! Stayed tuned :)
----------, Dec 7, 2019

[​IMG]

Update v1.2.8

Bug fixes and API additions!
In this update, I fixed many bugs that include the top playtime and the API! The API now has new additions that let you receive day, hours, minutes and seconds in Integer form. Check main page for more info.
----------, Sep 19, 2019

[​IMG]

Update v1.2.7


WARNING:
In this update, the plugin was renamed from "PlayTime" to "PlayTimes". This means a new folder will be created on your server named PlayTimes. If you would like to keep your current info please copy and paste the info from the "PlayTime" folder to the "PlayTimes" folder. This was an important change that needed to be done. I am very sorry for the inconvenience.


New papi placeholder:

A new placeholder was added for PAPI, %PlayTimes_joindate%. This placeholder will show the joindate on any plugin that supports PAPI :)

Show seconds feature:


As requested by some players, you can choose to show the seconds of a playtime. If show-seconds is true in the config then when a player uses /playtime they will be able to view up to the second they've played for.
----------, Aug 5, 2019

[​IMG]

Update v1.2.6

Placeholders expansion has finally been added!
If you would like to use playtime & uptime placeholders in other plugins that support PAPI you are now able to do so!

PAPI Placeholders:
%PlayTimes_playtime%
%PlayTimes_uptime%

For placeholders to work in other plugins you will need PlayTime downloaded and inside your plugins folder. The plugin you are trying to use placeholders in must also support PAPI

API has also been fixed!


If you are experiencing problems please contact me via discord :)
----------, Aug 2, 2019

[​IMG]

Update v1.2.5
Alright last bug fix I promise :)
----------, Jul 25, 2019

[​IMG]

Update v1.2.4
Bug fixes.
----------, Jul 24, 2019

[​IMG]

Update v1.2.3
[​IMG]
Top PlayTime Command BETA:
/topplaytime (/toppt) was added into the plugin! This command will display the top 10 players with the most playtime! If you are using this feature keep in mind that it will only read players playtime if they joined after this update! Meaning /topplaytime will not go through all the players in the server if they have not yet joined the server since you added this update into your plugins folder.

GUI coming soon!

TopPlayTime Cooldown:
An optional cooldown was also added to this command!
To bypass the cooldown add the permission node "pt.block-cooldown"
Can be edited inside the config.yml :)



Q) My /topplaytime command isn't updating every second??
A) If /toppt isn't updating every second then you must change the autosave to '20' inside your bukkit.yml file. NOTE this might cause lagg, not 100% sure.
Code (Text):
ticks-per:
  animal-spawns: 400
  monster-spawns: 1
  autosave: 20

----------, Jul 24, 2019

[​IMG]

Update v1.2.2
Bug fixes.
----------, Jul 22, 2019

[​IMG]

Update v1.2.1
Plugin now works in all versions!
Spigot 1.7 and above!

For versions 1.12 and below:
If the players playtime isn't updating every second you will have to go into your bukkit.yml folder on your server and change ticks-per: autosave: to 20.
Code (Text):
ticks-per:
  animal-spawns: 400
  monster-spawns: 1
  autosave: 20



(located in bukkit.yml folder)
[​IMG]


----------, Jul 19, 2019

[​IMG]

Update v1.2
In this update, the plugin has been completely re-coded. Many bug fixes have been done as well as prepping for the new features :)

API has been fixed.
JoinDate has been fixed.
Messages has been fixed.
and more :)

No new features have been added but, The new features will be coming soon! I wanted to put this update out to fix all the bugs before releasing something new.

Coming soon features:

Placeholders added to PAPI
/toptime command
playtime rewards addon
playtime GUI
Better API
----------, Jul 18, 2019

[​IMG]

Update v1.1.2
Offline playtime now works again!
Many bugs were fixed as well as settings.yml added.
Plugin no longer needs a config.yml. All info will be read from the settings.yml!

Plugin only supports 1.13+
Only tested in 1.14.
----------, May 3, 2019

[​IMG]

Update v1.1.1
In this update, I fixed many bugs. The reload command is now fixed. There is no more /admintime instead use /playtime <reload/help/info>.
The permission node is the same "pt.admin".

/playtime reload - to reload config
----------, Dec 1, 2018

[​IMG]

Update v1.1
This is the official 1.13.x update. Upon downloading you will see 2 different jar files, labeled "playtime(1.7-1.12.2)" and "playtime(1.13.x)". Make sure you use the correct one for your spigot version! The API was also updated, you may now pull the uptime with "getUptime"
*More info coming soon*
----------, Dec 1, 2018

[​IMG]

Update v1.0.3
In this update, I made pulling the UUID of an offline player from Mojang's website more efficient with only 1 pull instead of 2. This should help servers that have frequent pulls. 1.13.x update coming soon!
----------, Sep 3, 2018

[​IMG]

Update v1.0.2
In this update, I fixed a few bugs as well as added in an API for devs and a new placeholder! PlayTime was also completely recoded to make the plugin more efficient!

API:
Simply add this resource to your plugin then use the import below:
Code (Text):
import me.Cmaaxx.PlayTime.PlayTimeAPI;
The values will return in a String. To get the values use either:
Code (Text):
PlayTimeAPI.getTime(player)[/SIZE][/FONT][/CENTER]
[FONT=Courier New][SIZE=4]
[CENTER]PlayTimeAPI.getOfflineTime(player)

getTime will return the playtime of player, while getOfflineTime will return the playtime of an offline player.

Placeholder:
I added in the placeholder, %joindate%. This placeholder will return the exact date the player joined the server.

----------, Jul 20, 2018

[​IMG]

Update v1.0.1
In this update, I fixed a few bugs with the refreshing of /playtime. Thank you to Cyrax for finding this issue!
----------, Jul 17, 2018

Resource Information
Author:
----------
Total Downloads: 36,945
First Release: Jul 17, 2018
Last Update: Jun 20, 2024
Category: ---------------
All-Time Rating:
79 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings