Payloads are supported for all listeners and snippets. It allows you to past contextual information at the time of registering the listener, to when the snippet is executed.
- Listeners can pass one of each payload type via
payloadString,payloadInt,payloadFloat,payloadEntities - Snippets can receive the payload as the last argument of the snippet via
payload.string,payload.int,payload.float,payload.entities
payload.ownerVillageId which will be defined if the listener defined ownerVillageId. (This is the preferred way of getting the village in a snippet when possible)