mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-26 17:36:21 -05:00
Moved location of ProxyStartEvent
This commit is contained in:
parent
57342c5491
commit
b91723164c
1 changed files with 1 additions and 2 deletions
|
@ -169,9 +169,8 @@ public class ViaProxy {
|
|||
}
|
||||
try {
|
||||
Logger.LOGGER.info("Starting proxy server");
|
||||
PluginManager.EVENT_MANAGER.call(new ProxyStartEvent());
|
||||
|
||||
currentProxyServer = new NetServer(() -> PluginManager.EVENT_MANAGER.call(new Client2ProxyHandlerCreationEvent(new Client2ProxyHandler())).getHandler(), Client2ProxyChannelInitializer::new);
|
||||
PluginManager.EVENT_MANAGER.call(new ProxyStartEvent());
|
||||
Logger.LOGGER.info("Binding proxy server to " + Options.BIND_ADDRESS + ":" + Options.BIND_PORT);
|
||||
currentProxyServer.bind(Options.BIND_ADDRESS, Options.BIND_PORT, false);
|
||||
} catch (Throwable e) {
|
||||
|
|
Loading…
Reference in a new issue