Skip to content

Instantly share code, notes, and snippets.

View Kazzuk's full-sized avatar
:shipit:
Working on cool projects

Kazuk Kazzuk

:shipit:
Working on cool projects
View GitHub Profile
@Kazzuk
Kazzuk / PingHandler.java
Last active July 15, 2023 08:13
Example implementation of MCBE server pinging
package org.example;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPromise;
import io.netty.util.concurrent.Promise;
import org.cloudburstmc.netty.channel.raknet.RakPong;
import org.cloudburstmc.protocol.bedrock.BedrockPong;
import java.util.concurrent.ScheduledFuture;