ServerboundPlayerActionPacketUtil

Util class for attaching and working with the ServerboundPlayerActionPacket for user-defined action from the player.

Types

Link copied to clipboard
Link copied to clipboard
data class PlayerActionEvent(var x: Int, var y: Int, var z: Int, var direction: ServerboundPlayerActionPacketUtil.Direction, var action: ServerboundPlayerActionPacketUtil.Action, var sequence: Int)

Functions

Link copied to clipboard
fun attach(name: String, plugin: JavaPlugin, player: Player, callback: ServerboundPlayerActionPacketUtil.PlayerActionEvent.() -> Unit): Boolean

Attach the Event to the Player.