Solved yml file

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

loadka95

Active Member
Feb 24, 2017
78
6
8
I have a point system on my server and i try to save the player's point to a yml file.
But when i tried this, its broke my variable, can't add or remove points from it. even if I removed this code...

code_language.skript:
on join:
    set {point.%player%} to single value "%player's UUID% - %name of player%" get of "plugins/Point/players.yml"
on quit:
    set "%player's UUID% - %name of player%" to "%{point.%player%}%" in yaml file "plugins/Point/players.yml"
on every 5 minutes:
    loop all players:
        set "%loop-player's UUID% - %name of loop-player%" to "%{point.%loop-player%}%" in yaml file "plugins/Point/players.yml"

Edit: I checked in the skript variable.csv file it's saving it as string instead of double, but idk why..
 
Last edited:
1. Use skUtilities for file related stuff (better than a truly outdated and not supported addon as WildSkript is).
2. Everything that's surrounded by quotes will be a text.
 
  • Like
Reactions: loadka95
Status
Not open for further replies.