diff --git a/proxy/src/main/java/net/md_5/bungee/command/CommandBungee.java b/proxy/src/main/java/net/md_5/bungee/command/CommandBungee.java index e8f85d87e..b07987915 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/CommandBungee.java +++ b/proxy/src/main/java/net/md_5/bungee/command/CommandBungee.java @@ -4,7 +4,6 @@ import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.plugin.Command; -import net.md_5.bungee.netty.HandlerBoss; public class CommandBungee extends Command { @@ -18,6 +17,5 @@ public class CommandBungee extends Command public void execute(CommandSender sender, String[] args) { sender.sendMessage( ChatColor.BLUE + "This server is running BungeeCord version " + ProxyServer.getInstance().getVersion() + " by md_5" ); - sender.sendMessage( ChatColor.BLUE + "There are currently " + HandlerBoss.registeredChannels + " channels registered" ); } } diff --git a/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java b/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java index 011d1e574..df8b79851 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java @@ -19,7 +19,6 @@ import net.md_5.bungee.packet.PacketHandler; public class HandlerBoss extends ChannelInboundMessageHandlerAdapter { - public static volatile int registeredChannels; private PacketHandler handler; public void setHandler(PacketHandler handler) @@ -28,18 +27,6 @@ public class HandlerBoss extends ChannelInboundMessageHandlerAdapter this.handler = handler; } - @Override - public void channelRegistered(ChannelHandlerContext ctx) throws Exception - { - registeredChannels++; - } - - @Override - public void channelUnregistered(ChannelHandlerContext ctx) throws Exception - { - registeredChannels--; - } - @Override public void channelActive(ChannelHandlerContext ctx) throws Exception {