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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 kicktargets
- the player(s) that got kickedreason
- the provided kick reason
-