We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loadConfiguration
1 parent 96832ab commit a3d26f1Copy full SHA for a3d26f1
src/content/docs/paper/dev/api/plugin-configs.mdx
@@ -157,7 +157,8 @@ YamlConfiguration config = YamlConfiguration.loadConfiguration(file);
157
config.save(file);
158
```
159
160
-This example reads the `items.yml` file from your plugin's data directory. This file must exist, else an error will be thrown.
+This example reads the `items.yml` file from your plugin's data directory. If the file does not exist or an error occurs
161
+during reading, an empty configuration will be returned.
162
163
:::danger[Blocking I/O]
164
0 commit comments