Async Player Connection Configure (Event) — SkBee
Addon: SkBee · Category: Event · Since: 3.15.0
Syntax
[on] async player connection configureDescription
An event that allows you to configure the player. This is async and allows you to run configuration code on the player. Once this event has finished execution, the player connection will continue. Freezing code within this event will pause the player from logging in. **NOTE**: When this event is called, there is no Player object yet, so you will have to rely on name/uuid/audience.
Event Values
- event-audience
- event-playerconnection
- event-string
- event-uuid
Examples
on async player connection configure:
set {-connect::%event-uuid%} to true
# Do something
while {-connect::%event-uuid%} is set:
# Player login will be halted while we wait for something
sleep thread for 1 tick
#Player will now connect