diff --git a/src/main/java/net/minestom/server/network/netty/NettyServer.java b/src/main/java/net/minestom/server/network/netty/NettyServer.java index 6b4e46615..a3f77c388 100644 --- a/src/main/java/net/minestom/server/network/netty/NettyServer.java +++ b/src/main/java/net/minestom/server/network/netty/NettyServer.java @@ -21,6 +21,7 @@ import net.minestom.server.network.PacketProcessor; import net.minestom.server.network.netty.channel.ClientChannel; import net.minestom.server.network.netty.codec.*; import net.minestom.server.utils.validate.Check; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.slf4j.Logger; @@ -28,6 +29,7 @@ import org.slf4j.LoggerFactory; import java.net.InetSocketAddress; +@ApiStatus.Internal public final class NettyServer { public static final Logger LOGGER = LoggerFactory.getLogger(NettyServer.class); @@ -172,6 +174,10 @@ public final class NettyServer { } } + public ServerSocketChannel getServerChannel() { + return serverChannel; + } + /** * Gets the address of the server. *