ConfigUtil

public final class ConfigUtil

Utility for loading and adapting configuration files.

Functions

Link copied to clipboard
@NotNull()
public static @NotNull() YamlConfiguration loadDataFile(@NotNull() @NotNull() Plugin plugin, @NotNull() @NotNull() String fileName)
Link copied to clipboard
@NotNull()
public static @NotNull() YamlConfiguration loadOrAdapt(@NotNull() @NotNull() Plugin plugin, @NotNull() @NotNull() String fileName)
Loads a configuration file from the plugin folder, or creates it from defaults.