DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
213 stars 106 forks source link

add context and switches to PlayerQuitEvent #2641

Open Hydroxycobalamin opened 2 months ago

Hydroxycobalamin commented 2 months ago

This PR modernizes the PlayerQuitEvent. Additionally to that it adds the following:

Switches

@Location true, requested by Chaps79 on Discord. cause:<cause> to only process the event when it matches the specific cause (only on Paper).`

Context

<context.cause> returns an ElementTag of the cause of the quit (only on Paper)

The PaperImplementation makes also use of the non-deprecated Methods