Add shutdown methods to ProxyServer

This commit is contained in:
Alexander Staeding
2020-07-30 21:48:58 +02:00
parent e3a95b4783
commit 190bef375a
2 changed files with 23 additions and 0 deletions

View File

@@ -453,6 +453,16 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
shutdown(explicitExit, TextComponent.of("Proxy shutting down."));
}
@Override
public void shutdown(TextComponent reason) {
shutdown(true, reason);
}
@Override
public void shutdown() {
shutdown(true);
}
public AsyncHttpClient getAsyncHttpClient() {
return cm.getHttpClient();
}