Directory Management
1This script allows you to edit, delete, view, create and list files and directories
Expressions:
[all] file[\s] (of|at) [directory] %string% [with [extension] %string%]
Returns files in a directory, if you add the [all] it will also search all directories in the directory. The extension is what file types it returns for example "sk" would only return skript files by default it finds everything including directories. You can set the extension to <FILES> if you want to only search for files or <DIRECTORIES> if you only want to search directories
delete file[\s] [(of|at)] [directory] %string%
Delete a specific file or if you point the string to a directory it will delete all files within that directory, it will also remove the directory if after removing all files the directory is empty (meaning if there is a folder within the folder it will not delete that content)
create file [(of|at)] %string% [with [text] %string%]
Create a file, optionally set the text of the file too
create directory [(of|at)] %string%
Creates a empty directory at the location
scripts
This returns all valid scripts in your scripts folder, this does not include scripts prefixed with "-"
Requires apache commons-io-2.6 (included in download)
file text [(of|at)] %string%
Returns text of a file
This also adds 2 functions:
files(directory,extension)
directories(directory,extension)
Examples:
command /createfile:[/B][/FONT][/B]
[B][B][FONT=Open Sans] trigger:
create file "plugins\Skript\scripts\emptyscript.sk" with "#This is an empty script%nl%#I should add some content here..."
#creates emptyscript.sk in your scripts folder and writes to it, %nl% would require skquery but adds a new line
command /deletefile:
trigger:
delete file "plugins\Skript\scripts\emptyscript.sk"
#deletes emptyscript.sk in your scripts folder
command /mypluginjars:
trigger:
send files at directory "plugins\" with "jar"
#returns all jar files in your plugins folder
command /alljars:
trigger:
send all files at directory "plugins\" with "jar"
#returns all jar files in directories after your plugins folder, meaning this will also return skript-mirror jars in the skript-mirror folder
Requirements:
Skript-Mirror
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta