We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a734b commit 7ff178dCopy full SHA for 7ff178d
src/main/kotlin/dev/themeinerlp/attollo/listener/AttolloListener.kt
@@ -29,7 +29,7 @@ class AttolloListener(private val attollo: Attollo) : Listener {
29
private fun handleElevator(player: Player, up: Boolean = false) {
30
if (!player.hasPermission(USE_PERMISSION)) return
31
32
- val location = player.location
+ val location = player.location.subtract(0.0, 1.0, 0.0)
33
val block = location.block
34
35
if (block.type != attollo.elevatorBlock) return
@@ -57,4 +57,4 @@ class AttolloListener(private val attollo: Attollo) : Listener {
57
player.teleportAsync(modifiedLocation)
58
}
59
60
-}
+}
0 commit comments