• 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.
Feb 25, 2023
2
0
1
23
whenever i try to do this skript which downloads a certain file using SkUtilities
command /download <text>:
trigger:
set {url} to arg-1
set {file} to "plugins/Skript/scripts/example.sk"
skutil download file from "%{url}%" to file "plugins/Skript/scripts"
if file {file} exists:
send "File downloaded successfully."
else:
send "Failed to download file."
it either gives me the error "File already exists" or "Site might be down" in the console even tho the site is working perfectly and the file doesnt exist
 
plugins/Skript/scripts is a folder, not a file, hence why you're getting issues. You need to also include the file name afterwards, like "plugins/Skript/scripts/myfile.txt". Also note the file extension at the end.
 
Status
Not open for further replies.