CodedRed-Spigot / PlayTimes

The best /playtime plugin! PAPI support, offline checks, API & more!
https://www.spigotmc.org/resources/playtimes-check-players-playtime-server-uptime.58858/
GNU General Public License v3.0
10 stars 13 forks source link

placeholder request #66

Open Miracle-Bee opened 1 month ago

Miracle-Bee commented 1 month ago

Hi, can you add a placeholder with a numeric value that represents playing time? I need this for the player ranking plugin I use.

CodedRedGIT commented 1 month ago

I can look into it, can you link the ranking plugin you use?

If you set to only-hours and remove the name characters it may work for you.


 ## Default Placeholders:
  ## %player%, %playtime%, %timesjoined%, %joindate%, %rawTime%, %afkTime%
  ## For database placeholders, visit: https://github.com/CodedRed-Spigot/PlayTimes/wiki/Bungee-Support
  ## PlaceholderAPI placeholders are also compatible.
  message:
   - "&b&m=======&b&l[%player%]&b&m======="
    - "&aPlaytime:&f %playtime%"
    - "&aTimes Joined:&f %timesjoined%"
    - "&aJoin Date:&f %joindate%"
    - "&b&m============================"
  name:
    second: "s"
    minute: "min "
    hour: ""
    day: "day "
    seconds: "s"
    minutes: "mins "
    hours: ""
    days: "days "

  ## 'only-hours' - Displays playtime solely in hours. Activating this overrides 'show-seconds' and 'show-days'.
  ## 'show-seconds' - Includes seconds in the display.
  ## 'show-days' - Includes days in the display.
  only-hours: true
  show-seconds: true
  show-days: true
  ## 'round-numbers' - Rounds off the playtime to whole numbers when 'only-hours' is true.
  round-numbers: true```
Miracle-Bee commented 1 month ago

Bakabilirim, kullandığınız sıralama eklentisinin linkini verebilir misiniz?

Only-hours olarak ayarlayıp isim karakterlerini kaldırırsanız işinize yarayabilir.

 ## Default Placeholders:
  ## %player%, %playtime%, %timesjoined%, %joindate%, %rawTime%, %afkTime%
  ## For database placeholders, visit: https://github.com/CodedRed-Spigot/PlayTimes/wiki/Bungee-Support
  ## PlaceholderAPI placeholders are also compatible.
  message:
   - "&b&m=======&b&l[%player%]&b&m======="
    - "&aPlaytime:&f %playtime%"
    - "&aTimes Joined:&f %timesjoined%"
    - "&aJoin Date:&f %joindate%"
    - "&b&m============================"
  name:
    second: "s"
    minute: "min "
    hour: ""
    day: "day "
    seconds: "s"
    minutes: "mins "
    hours: ""
    days: "days "

  ## 'only-hours' - Displays playtime solely in hours. Activating this overrides 'show-seconds' and 'show-days'.
  ## 'show-seconds' - Includes seconds in the display.
  ## 'show-days' - Includes days in the display.
  only-hours: true
  show-seconds: true
  show-days: true
  ## 'round-numbers' - Rounds off the playtime to whole numbers when 'only-hours' is true.
  round-numbers: true```

Hello, I use ajLeaderboards to rank players. (https://www.spigotmc.org/resources/ajleaderboards.85548/)