ServerboundPlayerCommandPacketUtil

Util class for attaching and working with the ServerboundPlayerCommandPacket for user-defined commands send by the player.

Types

Link copied to clipboard
data class PlayerCommandEvent(var entityId: Int, var action: ServerboundPlayerCommandPacketUtil.CommandAction, var data: Int)

Functions

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

Attach the Event to the Player.