Interface UserFirstLoginEvent

  • All Superinterfaces:
    LuckPermsEvent

    public interface UserFirstLoginEvent
    extends LuckPermsEvent
    Called when the user logs into the network for the first time.

    Particularly useful for networks with multiple lobbies, who want to welcome a user when they join for the first time.

    This event is fired before the player has actually joined the game on the async login / auth event. If you want to do something with the user, store the UUID in a set, and then check the set in the PlayerJoinEvent o.e.

    The users data will not be loaded when this event is called.

    • Method Detail

      • getUniqueId

        @NonNull UUID getUniqueId()
        Gets the UUID of the user
        Returns:
        the uuid of the user
      • getUsername

        @NonNull String getUsername()
        Gets the username of the user
        Returns:
        the username of the user