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...
Nameplayer quits
Event Lines player quits
player quit
Triggerswhen a player quit the server.
Generated Examplesafter player quits:
after player quit:
on player quits:
on player quit:
Has PlayerAlways. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link.
Switchescause:<cause> to only process the event when it matches the specific cause (only on Paper).
Contexts<context.message> returns an ElementTag of the quit message.
<context.cause> returns an ElementTag of the cause of the quit (only on Paper): 🔗https://jd.papermc.io/paper/1.21.1/org/bukkit/event/player/PlayerQuitEvent.QuitReason.html.
DetermineElementTag to change the quit message.
"NONE" to cancel the quit message.
Has LocationTrue - This adds the switches 'in:<area>', 'location_flagged:<flag>', ...
Synonyms (Search Aid)player disconnects, player logs off, player leaves
GroupPlayer
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerQuitsScriptEvent.java#L16