Interface KickedFromServerEvent

    • Method Detail

      • serverKickReason

        @Nullable Component serverKickReason()
        Gets the reason the server kicked the player from the server.
        Returns:
        the server kicked the player from the server
      • kickedDuringServerConnect

        boolean kickedDuringServerConnect()
        Returns whether or not the player got kicked while connecting to another server.
        Returns:
        whether or not the player got kicked
      • handleByDisconnecting

        default void handleByDisconnecting​(Component reason)
        Handles the event by disconnecting the player with the specified reason.
        Parameters:
        reason - the reason for disconnecting the player
      • handleByConnectingToServer

        default void handleByConnectingToServer​(RegisteredServer server)
        Handles the event by falling back on the specified server.
        Parameters:
        server - the server to fall back to
      • handleByNotifying

        default void handleByNotifying​(Component reason)
        Handles the event by giving the player the specified reason.
        Parameters:
        reason - the reason for being kicked