Class ProxyPreShutdownEvent
java.lang.Object
com.velocitypowered.api.event.proxy.ProxyPreShutdownEvent
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 Summary
Constructors -
Method Summary