Fixed placeholders

This commit is contained in:
Auxilor
2022-02-17 16:45:35 +00:00
parent a80c0a11e4
commit 2b82bd2742

View File

@@ -59,11 +59,11 @@ class BoostersPlugin : LibReforgePlugin(2036, 14269, "&e") {
}
}
val secondsLeft: Int
private val secondsLeft: Int
get() {
val endTime = ServerProfile.load().read(expiryTimeKey)
val currentTime = System.currentTimeMillis()
return if (endTime < currentTime) {
return if (endTime < currentTime || activeBooster == null) {
0
} else {
((endTime - currentTime) / 1000).toInt()