File Writer icon

File Writer -----

Simple implementation of the java.io.File Class in Skript



[​IMG]


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}
 
Resource Information
Author:
----------
Total Downloads: 79
First Release: May 20, 2024
Last Update: May 20, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings