Events
List of all events available in skPapi.
# Name: Clientside interact - Called when player interact with entity clientside (works for holograms and npcs too)
# Event values: player, clientside-event-entity, interaction-type
# Example: on clientside interact with entity: broadcast "%player% - %clientside-event-entity% - %interaction-type%"
on clientside interact with entity:
# Name: Clientside digging - Called when player start/stop digging, finish action with item (eating, pulling bow...), drop item/stack, swap hands
# Event values: player, event-action-type, event-action-location, event-action-side
# Example: on clientside digging: broadcast "%player% - %event-action-type% - %event-action-location% - %event-action-side%"
on clientside digging:
# Name: Message recieve - Called when player recieves a chat message (You can cancel the event, very useful if you want to get rid of/replace some annoying plugin messages)
# Event values: player, recieved-message
# Example: on clientside message recieve: send "%player% - %recieved-message%" to console
on clientside message recieve:
# Name: Advanced join - Called when player joins, can detect mods in client, version etc.
# Event values: player, vanilla, payload
# Example: on advanced join: broadcast "%player% - %vanilla% - %payload%"
on advanced join:
# Name: Resource pack status - Called when player successfully load/decline/failed download or accept resourcepack
# Event values: player, pack-status
# Example: on clientside resourcepack status: broadcast "%player% - %pack-status%"
on clientside resourcepack status:
# Name: Sign gui update - Called when player change sign gui
# Event values: player, line-%integer%
# Example: on sign gui update: broadcast "%player% - %line-1%, %line-2%, %line-3%, %line-4%"
on sign gui update:
# Name: Block change - Called when block is changed (Can catch changing flower pots, activiting pistons etc.)
# Event values: player, block-location, block-data
# Example: on client-side block change: broadcast "%player% - %block-location% - %block-data%"
on client-side block change:
Last updated
Was this helpful?