ServuxSpigot/Deprecated/util/Timeout.kt

9 lines
186 B
Kotlin

package cc.maxmc.servux.util
class Timeout(var lastSync: Int) {
fun needsUpdate(currentTick: Int, timeout: Int): Boolean {
return currentTick - lastSync >= timeout
}
}