public interface PlayerLoginProcessEvent extends LuckPermsEvent
This event will always execute during the platforms async connection event. The LuckPerms platform listener processing the connection will block while this event is posted.
This, among other things, allows you to wait until permission data is loaded for a User during the BungeeCord 'LoginEvent', as event priorities are ignored by the current implementation.
The implementation will make an attempt to ensure this event is called for all connections, even if the operation to load User data was not successful. Note that LuckPerms will usually cancel the platform connection event if data could not be loaded.
| Modifier and Type | Method and Description |
|---|---|
@Nullable User |
getUser()
Gets the resultant User instance which was loaded.
|
@NonNull String |
getUsername()
Gets the username of the connection which was processed
|
@NonNull UUID |
getUuid()
Gets the UUID of the connection which was processed
|
default boolean |
wasSuccessful()
Gets if the login was processed successfully.
|
getApi, getEventType@NonNull UUID getUuid()
@NonNull String getUsername()
default boolean wasSuccessful()
@Nullable User getUser()
Returns null if the login was not processed
successfully.