I haven't tested this, but it's my first script using download file, the goal of it is to allow my devs to access a script file without having console access, and have it automatically update it to the server with a command. So, I'm looking for any errors or ways to optimize it as it is currently untested and somewhat rushed.
Code:
command /testupdate:
trigger:
announce "&5update"
if file "plugins/skript/scripts/core.sk" doesn't exist:
download file from "githubrawlinkthatdoesntexist.com" to file "plugins/skript/scripts/core.sk"
announce "&5updated"
else:
delete file "plugins/skript/scripts/core.sk"
download file from "githubrawlinkthatdoesntexist.com" to file "plugins/skript/scripts/core.sk'
announce "&5updated"