From d1ecb21675e296ada25317c05c64beef6ecaf62d Mon Sep 17 00:00:00 2001 From: liv Date: Mon, 11 Jan 2021 13:44:48 -0500 Subject: [PATCH] [fix] Setting names in CoordsLog to be more clear --- .../kami/module/modules/misc/CoordsLog.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/misc/CoordsLog.kt b/src/main/java/me/zeroeightsix/kami/module/modules/misc/CoordsLog.kt index d1a6dbe7a..0f44281e2 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/misc/CoordsLog.kt +++ b/src/main/java/me/zeroeightsix/kami/module/modules/misc/CoordsLog.kt @@ -17,9 +17,9 @@ object CoordsLog : Module( description = "Automatically logs your coords, based on actions", category = Category.MISC ) { - private val saveOnDeath = setting("SaveOnDeath", true) - private val autoLog = setting("AutoLog", false) - private val delay = setting("Delay", 15, 1..60, 1) + private val saveOnDeath by setting("SaveOnDeath", true) + private val logEveryX by setting("LogEveryX", false) + private val delay by setting("DelayMinutes", 15, 1..60, 1) private var previousCoord: String? = null private var savedDeath = false @@ -27,16 +27,16 @@ object CoordsLog : Module( init { safeListener { - if (autoLog.value && timer.tick(delay.value.toLong())) { + if (logEveryX && timer.tick(delay.toLong())) { val currentCoord = player.positionVector.toBlockPos().asString() if (currentCoord != previousCoord) { - WaypointManager.add("autoLogger") + WaypointManager.add("CoordsLog") previousCoord = currentCoord } } - if (saveOnDeath.value) { + if (saveOnDeath) { savedDeath = if (player.isDead || player.health <= 0.0f) { if (!savedDeath) { val deathPoint = WaypointManager.add("Death - " + InfoCalculator.getServerType()).pos @@ -50,4 +50,4 @@ object CoordsLog : Module( } } -} \ No newline at end of file +}