PlayTimes - Track Player PlayTime icon

PlayTimes - Track Player PlayTime -----

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



BIG UPDATE: 1.17 Support and more! *MUST READ*
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
Resource Information
Author:
----------
Total Downloads: 36,953
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