Im trying to create a zip file with skUtilities. But everytime I run the code, Im getting this error:
This is my test code
Using Skript version 2.5-alpha3 and skUtilities version 0.9.2 on Paper version git-Paper-316 (MC: 1.15.2)
Code:
[14:07:56 ERROR]: [skUtilities] v0.9.2: Directory: 'C:\Users\ASUS\Server\t30123\plugins\MobArena' doesn't exist, or doesn't have write permission! (EffZipDirectory.class)
This is my test code
Code:
command /filetest <text>:
permission: asdad
trigger:
if directory "%arg%" does not exist:
send "Directory doesnt exist."
stop
else:
send "Directory %arg% exists."
wait 1 second
if directory "plugins\Sk-Backup\test" does not exist:
create directory "plugins\Sk-Backup\test"
send "Created test folder"
else:
send "test folder exists."
wait 1 second
if directory "plugins\Sk-Backup\test\backup.zip" does not exist:
create zip file "plugins\Sk-Backup\test\backup.zip"
send "Created backup.zip zip file"
else:
send "backup.zip zip exists."
stop
wait 1 second
skutil zip directory "%arg%" to zip "plugins\Sk-Backup\test\backup.zip"
send "Zipped directory"
stop
on file zip:
broadcast "%event-file%"
broadcast "%event-string%"
Using Skript version 2.5-alpha3 and skUtilities version 0.9.2 on Paper version git-Paper-316 (MC: 1.15.2)