ToolSet / com.zndevs.toolset.tools / ToolSetOptions

ToolSetOptions

object ToolSetOptions

Tools to help with configuration files and other general options

Properties

dataDirectory val dataDirectory: File
Get the directory that data is saved in
errorPrefix const val errorPrefix: String
ToolSet error prefix
helpPrefix const val helpPrefix: String
noPermissionsMessage val noPermissionsMessage: String
ToolSet No-Perms message
plugin var plugin: JavaPlugin?
IMPORTANT: DO NOT CHANGE
prefix const val prefix: String
ToolSet prefix
toolSetApiPath var toolSetApiPath: String?
ToolSet API URL. If you have a local copy of the ToolSet website for debugging, set the TOOLSET_API environment variable.

Functions

getCommandOptions fun ~~getCommandOptions~~(commandName: String): ConfigurationSection
Get the options for a command from config.yml
getDataFile fun getDataFile(fileName: String): File
Get the File for a command config file
getDataOptions fun getDataOptions(fileName: String): YamlConfiguration
Get command options from the command file
getHelpFormat fun getHelpFormat(commandName: String, commandOptions: Array<String>): String?
Get help text from commandfun getHelpFormat(commandName: String, commandOptions: Iterable<Node<String>>): String?
Get help text from a command using Nodes
getOptions fun getOptions(file: File): YamlConfiguration
Get YamlConfiguration from a File
getToolSetApiPath fun getToolSetApiPath(file: String): String
Get public API url
isCommandEnabled fun isCommandEnabled(filePath: String): Boolean
Check if a command is enabled from its config file