Interface PlanFabricEvents.OnPlayerKicked

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.OnPlayerKicked
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onKicked(net.minecraft.server.command.ServerCommandSource source, Collection<net.minecraft.server.network.ServerPlayerEntity> targets, net.minecraft.text.Text reason)
    Called when a player (or multiple) get kicked from the server
  • Method Details

    • onKicked

      void onKicked(net.minecraft.server.command.ServerCommandSource source, Collection<net.minecraft.server.network.ServerPlayerEntity> targets, net.minecraft.text.Text reason)
      Called when a player (or multiple) get kicked from the server
      Parameters:
      source - the source that initated the kick
      targets - the player(s) that got kicked
      reason - the provided kick reason