Interface ServerEvents.Player.Kick.Allow

Enclosing class:
ServerEvents.Player.Kick
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 ServerEvents.Player.Kick.Allow
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    allowKick(@NotNull net.minecraft.server.level.ServerPlayer player, @NotNull net.minecraft.network.chat.Component reason)
    Called when a player kicks a server
  • Method Details Link icon

    • allowKick Link icon

      boolean allowKick(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @NotNull @NotNull net.minecraft.network.chat.Component reason)
      Called when a player kicks a server
      Parameters:
      player - the player
      reason - the kick reason
      Returns:
      true if the player should be kicked, otherwise false