HomeJavaMods[Skript] FilesAPI
[Skript] FilesAPI
[​IMG]
»What is it API?

This api is for manange files and foldes
(Continuation of the Cuidabrutos project)
[​IMG]

»Usage:
createfolder("Folder") - create an folder
createfile("folder direction") - create an file in a folder
writeto("Text", " file direction ") - write text in an file
downloadfrom("url", " file direction ") - download an text and write in a file
[​IMG]

»Example:
Spoiler: Example
Code (Text):
command /testfilesapi:[/SIZE][/LEFT]
[SIZE=5]
[LEFT]    trigger:
        createfolder("TestFolder")
        send "&4&lCreating files"
        createfile("plugins/TestFolder/config.yml")
        writeto("##Test file by @WaxtzCraft", "plugins/TestFolder/config.yml")
        writeto("testboolean: true", "plugins/TestFolder/config.yml")
        writeto("testcoloredvalue: '&2&lHello spigot!!!'", "plugins/TestFolder/config.yml")
        send "&4&lCreated!"
        send "&4&lAuto delete all files in 10 seconds"
        wait 10 seconds
        deletefile("plugins/TestFolder/config.yml")
        send "&4&lDeleted!"


[​IMG]
» Dependencies:
Skript 2.2: Click here to download
WildSkript: Click here to download
[​IMG]
» To do list:
- load files
[​IMG]
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[Skript] FilesAPI is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10. Downloaded 1,109 times (via Spigot). Download it and open it directly in the game.

Explore more