Class ListenerBoundEvent

java.lang.Object
com.velocitypowered.api.event.proxy.ListenerBoundEvent

public final class ListenerBoundEvent extends Object
This event is fired by the proxy after a listener starts accepting connections.
  • Constructor Details

    • ListenerBoundEvent

      public ListenerBoundEvent(InetSocketAddress address, ListenerType listenerType)
      Constructs a new ListenerBoundEvent.
      Parameters:
      address - the socket address the listener is bound to
      listenerType - the type of listener that was bound
  • Method Details

    • getAddress

      public InetSocketAddress getAddress()
      Returns the socket address the listener is bound to.
      Returns:
      the bound socket address
    • getListenerType

      public ListenerType getListenerType()
      Returns the type of listener that was bound.
      Returns:
      the listener type
    • toString

      public String toString()
      Overrides:
      toString in class Object