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.
Note: Velocity will wait for all event listeners to complete before disconnecting players.
The wait will time out after a configurable period (default 10 seconds) controlled by the
velocity.pre-shutdown-timeout system property, to prevent shutdown from hanging indefinitely.
- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary