Reduce strength of doublejump & jumpad (and change jumpad material)
This commit is contained in:
@@ -43,7 +43,7 @@ class PlayerMoveListener(val plugin: GalaxyLobbyPlugin) : Listener {
|
|||||||
if (currentTime - lastActivation < 1000) return
|
if (currentTime - lastActivation < 1000) return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playerBlock.type === Material.CHERRY_PRESSURE_PLATE) {
|
if (playerBlock.type === Material.MANGROVE_PRESSURE_PLATE) {
|
||||||
plugin.jumpPadCooldowns.put(playerId, currentTime)
|
plugin.jumpPadCooldowns.put(playerId, currentTime)
|
||||||
|
|
||||||
if (player.gameMode == GameMode.ADVENTURE && player.inventory.heldItemSlot == 7) {
|
if (player.gameMode == GameMode.ADVENTURE && player.inventory.heldItemSlot == 7) {
|
||||||
@@ -69,7 +69,7 @@ class PlayerMoveListener(val plugin: GalaxyLobbyPlugin) : Listener {
|
|||||||
}, 40)
|
}, 40)
|
||||||
return
|
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)
|
player.playSound(player.location, Sound.ENTITY_BAT_TAKEOFF, 1.0f, 1.0f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class PlayerToggleFlightListener : Listener {
|
|||||||
|
|
||||||
event.isCancelled = true
|
event.isCancelled = true
|
||||||
player.allowFlight = false
|
player.allowFlight = false
|
||||||
direction.multiply(2.5f)
|
direction.multiply(1.25f)
|
||||||
direction.setY(1)
|
direction.setY(1)
|
||||||
player.velocity = direction
|
player.velocity = direction
|
||||||
player.playSound(player.location, Sound.ENTITY_ENDER_DRAGON_FLAP, 1.0f, 1.0f)
|
player.playSound(player.location, Sound.ENTITY_ENDER_DRAGON_FLAP, 1.0f, 1.0f)
|
||||||
|
|||||||
Reference in New Issue
Block a user