Package icu.suc.serverevents
Interface ServerEvents.Player.Kick.ModifyReason
- 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.
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.network.chat.Component
modifyKickReason
(@NotNull net.minecraft.server.level.ServerPlayer player, @NotNull net.minecraft.network.chat.Component reason) Modifies or provides a reason for a player kicked.
-
Method Details
-
modifyKickReason
@NotNull @NotNull net.minecraft.network.chat.Component modifyKickReason(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @NotNull @NotNull net.minecraft.network.chat.Component reason) Modifies or provides a reason for a player kicked.- Parameters:
player
- the playerreason
- the kick reason- Returns:
- the new kick reason
-