mirror of
https://github.com/devproje/px32-bot.git
synced 2025-04-22 08:09:53 +09:00
16 lines
368 B
Kotlin
16 lines
368 B
Kotlin
package net.projecttl.p.x32
|
|
|
|
import java.util.*
|
|
import kotlin.reflect.KProperty
|
|
|
|
private class DefaultConfigDelegate {
|
|
private val props = Properties()
|
|
|
|
init {
|
|
props.load(this.javaClass.getResourceAsStream("/default.properties"))
|
|
}
|
|
|
|
operator fun getValue(thisRef: Any?, property: KProperty<*>): String {
|
|
return props.getProperty(property.name).toString()
|
|
}
|
|
}
|