Delete "minutes" and "seconds" from time played of player expression

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

wrymain

Member
Feb 20, 2025
37
0
6
it as the title said. i'm with this currently:

Code:
    set {_time} to time played of player
    set {playtime} to "%{_time}%"
    replace "and" with "" in {playtime}
    replace " seconds" with "D" in {playtime}
    replace " minutes" with "M" in {playtime}
    replace " hour" with "J" in {playtime}
    replace " day" with "H" in {playtime}
    replace " hours" with "J" in {playtime}
    replace " days" with "H" in {playtime}
    set line 5 of player's fastboard to "&f✦ &cPlaytime: &6%{playtime}%"

not much really, but i don't know else
 

Attachments

  • 2025-05-24_20.54.15.png
    2025-05-24_20.54.15.png
    1.2 MB · Views: 170