Write Variables in .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 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.

Jacobtims

New Member
Jul 25, 2017
6
0
0
37
I want to write variables (%loop-player%) to a .yml file. I have made this script:

on load:
...wait 2 seconds
...if file "plugins/ProDuels/scoreboard.yml" doesn't exists:
.........create file "plugins/ProDuels/scoreboard.yml"
.........wf "line 3: '&3» &7&lNick &c%loop-player%'" to "plugins/ProDuels/scoreboard.yml"

But the server console gives this error:
[08:20:17 ERROR]: There's no loop that matches 'loop-player' (ProDuels.sk, line
593: wf "line 3: '&3╗ &7&lNick &c%loop-player%'" to "plugins/ProDuels/scoreboar
.yml"')

How can i fix this?
 
It doesn't work, I want that the plugin writes variable:% loop-player%, in the scoreboard.yml file
 
Status
Not open for further replies.