Solved replacing does not work

  • 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!

Status
Not open for further replies.

Runakai

Supporter
Apr 27, 2018
496
32
28
I am trying to replace the English translation in a variable (date) but it does not work.

code_language.skript:
command /hal:
    trigger:
        set {_differenceclass} to difference between {classnow::%uuid of player%} and now
        replace all " days" with "Tage" in {_differenceclass}
        replace all "days" with "Tage" in {_differenceclass}
        broadcast "%{_differenceclass}%"

It still just broadcasts "days" instead of "Tage"
 
It's because the variable is a timespan, not a text
 
Well what should I do then? I already tried parsing it as a Text but Skript says it already is a text.
 
Try
code_language.skript:
set {_differenceclass} to "%difference between {classnow::%uuid of player%} and now%"
 
Status
Not open for further replies.