diff --git a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java index 6fa6223ae..54c446a88 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/VelocityServer.java @@ -456,8 +456,12 @@ public class VelocityServer implements ProxyServer, ForwardingAudience { } }; - Thread thread = new Thread(shutdownProcess); - thread.start(); + if (explicitExit) { + Thread thread = new Thread(shutdownProcess); + thread.start(); + } else { + shutdownProcess.run(); + } } /**