-
-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Description
In the Custom configuration files section, it says the config file must exist else an error will be thrown. This doesn't match the real behavior of Bukkit configuration API.
YamlConfiguration.java
@NotNull
public static YamlConfiguration loadConfiguration(@NotNull File file) {
Preconditions.checkArgument(file != null, "File cannot be null");
YamlConfiguration config = new YamlConfiguration();
try {
config.load(file);
} catch (FileNotFoundException ex) {
} catch (IOException ex) {
Bukkit.getLogger().log(Level.SEVERE, "Cannot load " + file, ex);
} catch (InvalidConfigurationException ex) {
Bukkit.getLogger().log(Level.SEVERE, "Cannot load " + file, ex);
}
return config;
}
Metadata
Metadata
Assignees
Labels
No labels