| Name | player prelogin |
| Event Lines | player prelogin |
| Triggers | when a player starts to log in to the server.
This is during the EARLY authentication process, and should NOT be confused with player joins. |
| Generated Examples | after player prelogin: |
| Has Player | When the player has previously joined (and thus the UUID is valid). - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Contexts | <context.hostname> returns an ElementTag of the player's hostname.
<context.name> returns an ElementTag of the player's name.
<context.uuid> returns an ElementTag of the player's UUID.
|
| Determine | QueueTag to cause the event to wait until the queue is complete.
"KICKED" to kick the player from the server. "KICKED <ElementTag>" to kick the player and specify a message to show. |
| Group | Player |
| Warning(s) | This is a very special-case handler, that delays logins until the events are handled on the main thread.
Generally, prefer on player logs in. |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerPreLoginScriptEvent.java#L27 |