Class ListenerCloseEvent

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

public final class ListenerCloseEvent extends Object
This event is fired by the proxy before the proxy stops accepting connections.
  • Constructor Details

    • ListenerCloseEvent

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

    • getAddress

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

      public ListenerType getListenerType()
      Returns the type of listener being closed.
      Returns:
      the listener type
    • toString

      public String toString()
      Overrides:
      toString in class Object