diff --git a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java index 61a719f4..94eade59 100644 --- a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java +++ b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java @@ -7,7 +7,6 @@ import java.util.List; import java.util.concurrent.TimeUnit; import joptsimple.OptionParser; import joptsimple.OptionSet; -import joptsimple.OptionSpec; import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.command.ConsoleCommandSender; @@ -60,6 +59,8 @@ public class Bootstrap } } + System.setProperty( "java.net.preferIPv4Stack", "true" ); + BungeeCord bungee = new BungeeCord(); ProxyServer.setInstance( bungee ); bungee.getLogger().info( "Enabled BungeeCord version " + bungee.getVersion() ); diff --git a/query/src/main/java/net/md_5/bungee/query/QueryHandler.java b/query/src/main/java/net/md_5/bungee/query/QueryHandler.java index adfc4a63..bf6e3d2e 100644 --- a/query/src/main/java/net/md_5/bungee/query/QueryHandler.java +++ b/query/src/main/java/net/md_5/bungee/query/QueryHandler.java @@ -44,12 +44,6 @@ public class QueryHandler extends SimpleChannelInboundHandler buf.writeByte( 0x00 ); } - @Override - public void channelActive(ChannelHandlerContext ctx) throws Exception - { - super.channelActive( ctx ); //To change body of generated methods, choose Tools | Templates. - } - @Override protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) throws Exception { diff --git a/query/src/main/java/net/md_5/bungee/query/RemoteQuery.java b/query/src/main/java/net/md_5/bungee/query/RemoteQuery.java index 011c722e..43b02753 100644 --- a/query/src/main/java/net/md_5/bungee/query/RemoteQuery.java +++ b/query/src/main/java/net/md_5/bungee/query/RemoteQuery.java @@ -1,7 +1,6 @@ package net.md_5.bungee.query; import io.netty.bootstrap.Bootstrap; -import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.EventLoopGroup; import io.netty.channel.socket.nio.NioDatagramChannel;