| Name | player quits |
| Event Lines | player quits
player quit |
| Triggers | when a player quit the server. |
| Generated Examples | after player quits:
after player quit: on player quits: on player quit: |
| Has Player | Always. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Switches | cause:<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.
|
| Determine | ElementTag to change the quit message.
"NONE" to cancel the quit message. |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Synonyms (Search Aid) | player disconnects, player logs off, player leaves |
| Group | Player |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerQuitsScriptEvent.java#L16 |