Options
Options provide a way to access and modify your config's values. They can be added with a option() method in categories or in the base command.
Configuration
Options implement printFunc()
, saveFunc()
and helpFunc()
in the same way as the base command node.
Example
SimpleOptions
class provides a collection of option types for basic data types like boolean
, int
, long
, float
, double
and String
.
Setting up value access can be tedious for multiple functions. Defaults
class provides simpler interfaces for common cases.
Result
Advanced options
Following sections go into detail of option types beyond basic data types.
Last updated