Denizen Script Events


Events are a way to listen to things that happened on your server and respond to them through a script. These usually pair with 'world' script containers.
Learn about how events work in The Beginner's Guide.


Showing 1 out of 399 events...
Nameclientizen event
Event Lines clientizen event
TriggersWhen the server receives an event from a clientizen client, this requires config option 'Clientizen.process events' in the Depenizen config.
Example
# Use to listen to Clientizen events with the id 'my_id' and send the player that sent them a message.
on clientizen event id:my_id:
- narrate "Hello! you sent an event with the id '<context.id>'"
Has PlayerAlways. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link.
Switchesid:<id> to only process the event if the identifier received from the client matches the specified matcher.
Contexts<context.id> returns an ElementTag of the event identifier received from the client.
<context.data> returns the context MapTag received from the client as a map of keys to ElementTags.
<context.(key)> returns the ElementTag value of the input key in the context map, if available.
GroupClientizen
Warning(s)The client can send any data it wants, so should very carefully verify any input before using it.
Sourcehttps://github.com/DenizenScript/Depenizen/blob/master/src/main/java/com/denizenscript/depenizen/bukkit/clientizen/ClientizenEventScriptEvent.java#L15