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));