Class ProxyPreShutdownEvent

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

@Beta @AwaitingEvent public final class ProxyPreShutdownEvent extends Object
This event is fired by the proxy after it has stopped accepting new connections, but before players are disconnected. This is the last point at which you can interact with currently connected players, for example to transfer them to another proxy or perform other cleanup tasks.
Since:
3.4.0
Implementation Note:
Velocity will wait for all event listeners to complete before disconnecting players, but note that the event will time out after the configured value of the velocity.pre-shutdown-timeout system property, default 10 seconds, in seconds to prevent shutdown from hanging indefinitely
  • Constructor Details

    • ProxyPreShutdownEvent

      public ProxyPreShutdownEvent()
  • Method Details