Solved Copy directory

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

Lordcre_

Supporter
May 7, 2017
22
3
0
Skript Version: Skript 2.2 (dev20c)
Skript Author: Bensku
Minecraft Version: 1.8.8
---
Full Code:
code_language.skript:
function worldReset(n: number) :: number:
    delete folder "MiningWorld"
    wait 2 second
    create folder "MiningWorld"
    wait 1 second
    copy dir "MiningWorldreset/region" to "MiningWorld"

Errors on Reload:
None

Console Errors:
Can't move non-existant files.

Addons using (including versions):
Umbaska 2.0 (Beta 5.0541), WildSkript v1.8

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Used multiple other syntaxes and changing the directory mutliple times but still the same problem. I've tried the following and more:

code_language.skript:
copy dir "MiningWorldreset" to "MiningWorld"
copy dir "MiningWorldreset/region" to "MiningWorld"
copy file "MiningWorldreset/level.dat" to "MiningWorld"
 
Last edited:
  • Like
Reactions: JustLeader
Status
Not open for further replies.