From d91ae8be1a2f7169efe1b7409cac39202463c645 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 20 Apr 2025 23:02:19 -0700 Subject: [PATCH] Reduce strength of doublejump & jumpad (and change jumpad material) --- .../kotlin/xyz/lncvrt/galaxylobby/event/PlayerMoveListener.kt | 4 ++-- .../lncvrt/galaxylobby/event/PlayerToggleFlightListener.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerMoveListener.kt b/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerMoveListener.kt index 53940fa..d2bd923 100644 --- a/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerMoveListener.kt +++ b/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerMoveListener.kt @@ -43,7 +43,7 @@ class PlayerMoveListener(val plugin: GalaxyLobbyPlugin) : Listener { if (currentTime - lastActivation < 1000) return } - if (playerBlock.type === Material.CHERRY_PRESSURE_PLATE) { + if (playerBlock.type === Material.MANGROVE_PRESSURE_PLATE) { plugin.jumpPadCooldowns.put(playerId, currentTime) if (player.gameMode == GameMode.ADVENTURE && player.inventory.heldItemSlot == 7) { @@ -69,7 +69,7 @@ class PlayerMoveListener(val plugin: GalaxyLobbyPlugin) : Listener { }, 40) return } - player.velocity = Vector(0.0, 1.0, 3.5) + player.velocity = Vector(0.0, 0.75, 1.5) player.playSound(player.location, Sound.ENTITY_BAT_TAKEOFF, 1.0f, 1.0f) } } diff --git a/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerToggleFlightListener.kt b/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerToggleFlightListener.kt index ae3b715..d62a4d8 100644 --- a/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerToggleFlightListener.kt +++ b/src/main/kotlin/xyz/lncvrt/galaxylobby/event/PlayerToggleFlightListener.kt @@ -17,7 +17,7 @@ class PlayerToggleFlightListener : Listener { event.isCancelled = true player.allowFlight = false - direction.multiply(2.5f) + direction.multiply(1.25f) direction.setY(1) player.velocity = direction player.playSound(player.location, Sound.ENTITY_ENDER_DRAGON_FLAP, 1.0f, 1.0f)