diff --git a/paperktlib-config/src/main/kotlin/com/filkond/paperktlib/config/ConfigManager.kt b/paperktlib-config/src/main/kotlin/com/filkond/paperktlib/config/ConfigManager.kt index 4f3c2cf..b55cc5d 100644 --- a/paperktlib-config/src/main/kotlin/com/filkond/paperktlib/config/ConfigManager.kt +++ b/paperktlib-config/src/main/kotlin/com/filkond/paperktlib/config/ConfigManager.kt @@ -10,17 +10,17 @@ import kotlin.reflect.KClass import kotlin.reflect.full.createInstance abstract class ConfigManager( - protected val folder: File, + val folder: File, private val formatter: StringFormat ) { val configs: MutableMap = mutableMapOf() - protected inline fun config(fileName: String): T { + inline fun config(fileName: String): T { val file = File(folder, fileName) return config(file, T::class) } - protected fun config(file: File, clazz: KClass): T { + fun config(file: File, clazz: KClass): T { val config = loadConfig(file, clazz) configs[file] = config return config