Solved Placeholders

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

    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.

ShaneBee

Supporter +
Addon Developer
Sep 7, 2017
2,248
241
73
Vancouver, Canada
Hello

Okay so I am trying to use a placeholder of a players time, in my tablist skript.
When I use this code

code_language.skript:
every second:
    loop players:
        set {_time} to placeholder "%%player_world_time_12%%" from player

I get this error
"There's no world ina periodic event if no world is given in the event"
If I use the same placeholder in a command
such as /time, it works, but it does not work in my every second event.
Now I sort of get why that happens, but is there a way I can fix it, so the time keeps updating on the tablist?

I am currently using Bensku 2.2dev 34,
Skellett 1.9.6b
Yes placeholders is enabled in my config
 
Try using this:

code_language.skript:
set {_time} to placeholder parse "%%player_world_time_12%%" as player
message "%{_time}%"

And download the addons:

- Skellet
- Skript
- PlaceHolderAPI
- Umbaska
 
umbaska won't load on my server. But what would umbaska have to do with that?
I already have skellett and PAPI, which is all that is needed for that one line.

Also "parse "placeholder" as player" is not the correct syntax and does not work
 
umbaska won't load on my server. But what would umbaska have to do with that?
I already have skellett and PAPI, which is all that is needed for that one line.

Also "parse "placeholder" as player" is not the correct syntax and does not work
It's actually because you use "player" instead of "loop-player". You need to use the looped player because otherwise the loop wouldnt be used at all.
 
Status
Not open for further replies.