16 lines
435 B
Kotlin
16 lines
435 B
Kotlin
package cc.maxmc.servux.dataproviders
|
|
|
|
import kotlin.math.max
|
|
|
|
abstract class DataProviderBase protected constructor(
|
|
override val name: String,
|
|
override val networkChannel: String,
|
|
override val protocolVersion: Int,
|
|
override val description: String,
|
|
) : IDataProvider {
|
|
override var isEnabled = false
|
|
override var tickRate = 40
|
|
protected set(tickRate) {
|
|
field = max(tickRate, 1)
|
|
}
|
|
} |