private void handleStatus(Channel channel, ByteBuf byteBuf) {
        if (!byteBuf.isReadable())
            return;

        int length = ByteBufUtils.readVarInt(byteBuf);
        int opcode = ByteBufUtils.readVarInt(byteBuf);

        if (opcode == 0x0) { // Status Request
            sendStatusResponse(channel);
        } else if (opcode == 0x01) { // Ping Packet
            sendPingResponse(channel, byteBuf.readLong());
        }
    }