Create PlayerExtensions.kt
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package net.axay.kspigot.extensions.entities
|
||||
|
||||
import org.bukkit.Material
|
||||
import org.bukkit.entity.Player
|
||||
|
||||
val Player.isInWater: Boolean get() = this.location.block.type == Material.WATER
|
Reference in New Issue
Block a user