Interface PlanFabricEvents.OnLogin

Enclosing class:
PlanFabricEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PlanFabricEvents.OnLogin
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLogin(SocketAddress address, com.mojang.authlib.GameProfile profile, net.minecraft.text.Text reason)
    Called when a player attempts to login
  • Method Details

    • onLogin

      void onLogin(SocketAddress address, com.mojang.authlib.GameProfile profile, net.minecraft.text.Text reason)
      Called when a player attempts to login
      Parameters:
      address - the address of the player
      profile - the profile of the player
      reason - the provided kick reason (null if player is permitted to join)