Copy yaml list

  • Thread starter Deleted member 5254
  • Start date
  • 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.
D

Deleted member 5254

Hello

So here is my problem. I have a yaml file, and it contains lists under each player, im trying to set up a UUID check system, which would involve copying the players list from their old name to their new name based on their UUID.

Where I'm stuck is, I can't figure out how to copy a list within a yaml. I have tried everything I can think of.

If anyone can help I would REALLY appreciate it.

So to sum it up.... copy the list from one name, to another!

Thank you
 
code_language.skript:
Set {_list::*} To yaml list "test.test" from file "plugins/test.yml"
Loop {_list::*}:
 Add "%loop-value%" To yaml list "test.test2" from file "plugins/test2.yml"
 
code_language.skript:
Set {_list::*} To yaml list "test.test" from file "plugins/test.yml"
Loop {_list::*}:
 Add "%loop-value%" To yaml list "test.test2" from file "plugins/test2.yml"
Awesome
Thank you Lego

I will give this a try

UPDATE:
I tried this, and it works flawlessly ... thanks again Lego
 
Last edited by a moderator:
  • Like
Reactions: Lego_freak1999
Status
Not open for further replies.