We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3915a7 commit b9d3556Copy full SHA for b9d3556
1 file changed
README.md
@@ -154,10 +154,16 @@ getConfigurationProvider().registerWithDefaults(
154
```java
155
import dev.spexx.configurationAPI.api.config.yaml.YamlConfig;
156
157
+// Option 1 - by File
158
YamlConfig config = getConfigurationProvider().get(
159
new File(getDataFolder(), "config.yml")
160
);
161
162
+// Option 2 - by path (String) relative or absolute
163
+
164
+YamlConfig config = getConfigurationProvider()
165
+ .getByPath("plugins/MyPlugin/config.yml);
166
167
String value = config.get().getString("path.to.value");
168
```
169
> 💡 Prefer get(File) over getByPath(String) for better reliability.
0 commit comments