17 lines
470 B
Kotlin
17 lines
470 B
Kotlin
package codes.som.hibiscus.features.player
|
|
|
|
import codes.som.hibiscus.api.feature.Feature
|
|
import codes.som.hibiscus.api.feature.FeatureCategory
|
|
import codes.som.hibiscus.events.NetworkMovingEvent
|
|
|
|
class NoFallDamage : Feature("No Fall Damage", FeatureCategory.PLAYER) {
|
|
init {
|
|
on<NetworkMovingEvent> { it.onGround = false }
|
|
}
|
|
|
|
override fun createFeatureCommand() =
|
|
super.createFeatureCommand().apply {
|
|
alias("nofall")
|
|
}
|
|
}
|