File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
surf-api-core/surf-api-core-api/src/main/kotlin/dev/slne/surf/surfapi/core/api/config Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import kotlin.reflect.KClass
1818class YmlConfigWrapper <T : Any >(
1919 private val clazz : KClass <T >,
2020 private val configFolder : Path ,
21- private val fileName : String
21+ private val fileName : @YamlConfigFileNamePattern String
2222) {
2323 /* *
2424 * Manages the configuration of type [T] through a Sponge-based configuration manager.
@@ -87,7 +87,7 @@ class YmlConfigWrapper<T : Any>(
8787 */
8888inline fun <reified C : Any > SurfConfigApi.createYmlConfig (
8989 configFolder : Path ,
90- fileName : String = "config.yml"
90+ fileName : @YamlConfigFileNamePattern String = "config.yml"
9191): YmlConfigWrapper <C > {
9292 return YmlConfigWrapper (C ::class , configFolder, fileName)
9393}
You can’t perform that action at this time.
0 commit comments