Skip to content

Commit a3d26f1

Browse files
committed
fix(paper): wrong loadConfiguration behavior
Closes #710.
1 parent 96832ab commit a3d26f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/paper/dev/api/plugin-configs.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ YamlConfiguration config = YamlConfiguration.loadConfiguration(file);
157157
config.save(file);
158158
```
159159

160-
This example reads the `items.yml` file from your plugin's data directory. This file must exist, else an error will be thrown.
160+
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.
161162

162163
:::danger[Blocking I/O]
163164

0 commit comments

Comments
 (0)