Configs
HCore allows you to easily work with configs using JSON and YAML.
Starting
For starting, you need to create config class.
Example config's class:
Then, you need to register config to HCore.
How to:
Now, you will able to get this config and get values from config's class. Example:
ConfigContainer#save()
Saves your config to file.
ConfigContainer#update()
Updates your config.
ConfigContainer#getConfig()
Returns your config's class. You can work with it and store values from it.
ConfigContainer#setConfig()
You can update config to new and save it.
Example:
ConfigContainer#getFile()
Returns config's file.
Last updated