Creating a Config Option
You can create options easily with the help of ConfigEntryBuilder
, firstly create a new ConfigEntryBuilder
:
There is a lot of default provided option types that you can choose from, here is an example of adding a new String text field.
currentValue should be the field holding the value of the option, and the save consumer will save it back when the config is saved.
Last updated
Was this helpful?