ToolSet / com.zndevs.toolset.tools / ToolSetOptions
ToolSetOptions
object ToolSetOptions
Tools to help with configuration files and other general options
Properties
| dataDirectory | val dataDirectory: FileGet the directory that data is saved in |
| errorPrefix | const val errorPrefix: StringToolSet error prefix |
| helpPrefix | const val helpPrefix: String |
| noPermissionsMessage | val noPermissionsMessage: StringToolSet No-Perms message |
| plugin | var plugin: JavaPlugin?IMPORTANT: DO NOT CHANGE |
| prefix | const val prefix: StringToolSet 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): ConfigurationSectionGet the options for a command from config.yml |
| getDataFile | fun getDataFile(fileName: String): FileGet the File for a command config file |
| getDataOptions | fun getDataOptions(fileName: String): YamlConfigurationGet command options from the command file |
| getHelpFormat | fun getHelpFormat(commandName: String, commandOptions: Array<String>): String?Get help text from command fun getHelpFormat(commandName: String, commandOptions: Iterable<Node<String>>): String?Get help text from a command using Nodes |
| getOptions | fun getOptions(file: File): YamlConfigurationGet YamlConfiguration from a File |
| getToolSetApiPath | fun getToolSetApiPath(file: String): StringGet public API url |
| isCommandEnabled | fun isCommandEnabled(filePath: String): BooleanCheck if a command is enabled from its config file |