dataFolder

fun dataFolder(path: String = "", asFolder: Boolean = true): File

Gets a file relative to the data folder. If running in standalone mode the data folder will be ./SimpleCoreAPI, otherwise it will be the plugins/SimpleCoreAPI folder

Return

The file relative to the data folder

Parameters

path

The path of the file relative to the data folder

asFolder

If true, it will return a folder, otherwise it will return a file