Hi, I want to replace my normal "world" folder with a clean one every game. My thinking is I could create a folder in skript's directory somewhere, and place a clean, untouched "world" file in there. Then, if I run the command /new, it would replace the altered world file with the clean one in the skript folder, and restart the server. I've found a plugin that does this, but it only works 50% of the time which is a bit useless.
I've worked with editing files before with skript, but I'm assuming if I could replace the whole folder itself, that it would be most efficient, but maybe not.
I've searched the docs for this but couldn't find anything with "replacing" a folder with another folder.
This is kinda what I mean, but obviously this doesn't work:
If anyone could give me some suggestions for this, that would be great. Thanks!
I've worked with editing files before with skript, but I'm assuming if I could replace the whole folder itself, that it would be most efficient, but maybe not.
I've searched the docs for this but couldn't find anything with "replacing" a folder with another folder.
This is kinda what I mean, but obviously this doesn't work:
Code:
command /new:
trigger:
replace folder in "C:\Users\Usern\Desktop\Server\world" with "../world"
execute console command "restart"
If anyone could give me some suggestions for this, that would be great. Thanks!