From 99596ca35415cd9e29100202ad0535d6c17fefaa Mon Sep 17 00:00:00 2001 From: Dank074 Date: Thu, 15 Oct 2020 02:19:32 -0500 Subject: [PATCH] updated dependency to MS 2.5.0 --- pom.xml | 6 +++--- .../plugin/nitro/websockets/NetworkChannelInitializer.java | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index e8e8362..d73881d 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,8 @@ org.apache.maven.plugins maven-compiler-plugin - 6 - 6 + 8 + 8 @@ -24,7 +24,7 @@ com.eu.habbo Habbo - 2.4.0 + 2.5.0 \ No newline at end of file diff --git a/src/main/java/com/krews/plugin/nitro/websockets/NetworkChannelInitializer.java b/src/main/java/com/krews/plugin/nitro/websockets/NetworkChannelInitializer.java index d29021c..db730da 100644 --- a/src/main/java/com/krews/plugin/nitro/websockets/NetworkChannelInitializer.java +++ b/src/main/java/com/krews/plugin/nitro/websockets/NetworkChannelInitializer.java @@ -4,6 +4,7 @@ import com.eu.habbo.messages.PacketManager; import com.eu.habbo.networking.gameserver.decoders.*; import com.eu.habbo.networking.gameserver.encoders.GameServerMessageEncoder; import com.eu.habbo.networking.gameserver.encoders.GameServerMessageLogger; +import com.eu.habbo.networking.gameserver.handlers.IdleTimeoutHandler; import com.krews.plugin.nitro.websockets.handlers.MessageInterceptorHandler; import io.netty.channel.ChannelInitializer; import io.netty.channel.socket.SocketChannel; @@ -13,7 +14,7 @@ import io.netty.handler.timeout.IdleStateHandler; public class NetworkChannelInitializer extends ChannelInitializer { @Override - public void initChannel(SocketChannel ch) throws Exception { + public void initChannel(SocketChannel ch) { ch.pipeline().addLast("logger", new LoggingHandler()); ch.pipeline().addLast("idleStateHandler", new IdleStateHandler(60, 30, 0));