Class ServerLoginPluginMessageEvent

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

@AwaitingEvent public class ServerLoginPluginMessageEvent extends Object implements ResultedEvent<ServerLoginPluginMessageEvent.ResponseResult>
Fired when a server sends a login plugin message to the proxy. Plugins have the opportunity to respond to the messages as needed. Velocity will wait on this event to finish. The server will be responsible for continuing the login process once the server is satisfied with any login plugin responses sent by proxy plugins (or messages indicating a lack of response).
  • Constructor Details

    • ServerLoginPluginMessageEvent

      public ServerLoginPluginMessageEvent(ServerConnection connection, ChannelIdentifier identifier, byte[] contents, int sequenceId)
      Constructs a new ServerLoginPluginMessageEvent.
      Parameters:
      connection - the connection on which the plugin message was sent
      identifier - the channel identifier for the message sent
      contents - the contents of the message
      sequenceId - the ID of the message
  • Method Details