Class KickedFromServerEvent

java.lang.Object
com.velocitypowered.api.event.player.KickedFromServerEvent
All Implemented Interfaces:
ResultedEvent<KickedFromServerEvent.ServerKickResult>

public final class KickedFromServerEvent extends Object implements ResultedEvent<KickedFromServerEvent.ServerKickResult>
Fired when a player is kicked from a server. You may either allow Velocity to kick the player (with an optional reason override) or redirect the player to a separate server. By default, Velocity will notify the user (if they are already connected to a server) or disconnect them (if they are not on a server and no other servers are available). Velocity will wait on this event to finish firing before taking the specified action.