Yaml Config

Base config creator

public BaseConfig(JavaPlugin plugin, String path, boolean hasInResource, Configuration defaultConfig)
public BaseConfig(JavaPlugin plugin, String path, boolean hasInResource)
public BaseConfig(JavaPlugin plugin, String path)
public BaseConfig(JavaPlugin plugin, String path, Configuration defaultConfig)

Options:

  • plugin - your plugin instance

  • path - config path (For example "lang.yml")

  • hasInResource - if true, then when creating, if there is no file, it is copied from the resources of your plugin (resource with the same path)

  • defaultConfig - default config data

Load/reload

public void load()

Save

public void save()

Get object of ?

Get list of ?

Contain

Defaults

Set

Last updated