FileWriter API
-----------------------------------------------------------------------------------------------------
Skript Version:
Skript-2.8.5
Used Addons:
Skript Reflect:
skript-reflect v2.4
-----------------------------------------------------------------------------------------------------
If you are new to Skript or dont know how to use this ressource, i will give you a quick explanation. For this ressource to work, you need to download the addon called Skript-Reflect from the download link above. It is reccomendet to use the newest version of both Skript and Skript-Reflect. After you dragged Skript and Skript-Reflect to the
Server/plugins/ folder, you need to start and stop the server. After that you will find the
Server/plugins/Skript/scripts/ path. There you will need to place the
filewriterAPI.sk file. After that you can use the syntax below to create Files and Folders from any skript of your choice.
Happy Skripting
Example Usage:
Code (Text):
command /showcase:
trigger:
set {_file} to "plugins/showcase.yml"
create file {_file}
write "Test: 123" to file {_file}
write "Test-2: 'ABC'" to file {_file}
set {_value} to yml value "Test-2" get of {_file}
broadcast {_value}